From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: scm_modulo big==0 Date: Thu, 25 Mar 2004 10:09:29 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <874qsdhjnq.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1080174372 11048 80.91.224.253 (25 Mar 2004 00:26:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 00:26:12 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 25 01:25:56 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6Ih2-0007q2-00 for ; Thu, 25 Mar 2004 01:25:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6IcU-0005f3-LD for guile-devel@m.gmane.org; Wed, 24 Mar 2004 19:21:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6Ibd-0005be-Jm for guile-devel@gnu.org; Wed, 24 Mar 2004 19:20:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6IYl-0005EZ-4V for guile-devel@gnu.org; Wed, 24 Mar 2004 19:17:54 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6IRO-00046a-P7 for guile-devel@gnu.org; Wed, 24 Mar 2004 19:09:47 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2P09d4u012545 for ; Thu, 25 Mar 2004 11:09:39 +1100 Original-Received: from localhost (ppp106.dyn251.pacific.net.au [203.143.251.106]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2P09csf019919 for ; Thu, 25 Mar 2004 11:09:39 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1B6IRA-000469-00; Thu, 25 Mar 2004 10:09:32 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3567 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3567 --=-=-= * numbers.c (scm_modulo): For inum/big and big/big, remove test of big==0 since that never occurs. --=-=-= Content-Disposition: inline; filename=numbers.c.modulo-big-0.diff --- numbers.c.~1.225.~ 2004-03-25 07:39:24.000000000 +1000 +++ numbers.c 2004-03-25 10:05:02.000000000 +1000 @@ -867,10 +867,6 @@ else if (SCM_BIGP (y)) { int sgn_y = mpz_sgn (SCM_I_BIG_MPZ (y)); - - if (sgn_y == 0) - scm_num_overflow (s_modulo); - else { mpz_t z_x; SCM result; @@ -933,10 +929,6 @@ } else if (SCM_BIGP (y)) { - int sgn_y = mpz_sgn (SCM_I_BIG_MPZ (y)); - if (sgn_y == 0) - scm_num_overflow (s_modulo); - else { SCM result = scm_i_mkbig (); int y_sgn = mpz_sgn (SCM_I_BIG_MPZ (y)); --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--