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: Re: mpz_cmp_d and NaNs in = and < Date: Sat, 10 May 2003 09:16:05 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87issjvhhm.fsf@zip.com.au> References: <87isspt1sc.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052524612 4378 80.91.224.249 (9 May 2003 23:56:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 May 2003 23:56:52 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat May 10 01:56:50 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19EHjO-00018G-00 for ; Sat, 10 May 2003 01:56:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EHkA-0000g0-01 for guile-devel@m.gmane.org; Fri, 09 May 2003 19:57:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19EHil-0008Fn-00 for guile-devel@gnu.org; Fri, 09 May 2003 19:56:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19EHie-00089I-00 for guile-devel@gnu.org; Fri, 09 May 2003 19:56:05 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EHiR-00083u-00 for guile-devel@gnu.org; Fri, 09 May 2003 19:55:51 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h49NtmPc003532 for ; Sat, 10 May 2003 09:55:48 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h49NtlQg021275 for ; Sat, 10 May 2003 09:55:47 +1000 (EST) Original-Received: from localhost (ppp60.dyn228.pacific.net.au [203.143.228.60]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h49NtjYZ028046 for ; Sat, 10 May 2003 09:55:47 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19EH5y-0000dT-00; Sat, 10 May 2003 09:16:06 +1000 Original-To: guile-devel@gnu.org In-Reply-To: <87isspt1sc.fsf@zip.com.au> (Kevin Ryde's message of "Tue, 06 May 2003 09:24:35 +1000") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2310 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2310 I wrote: > > * numbers.c (scm_num_eq_p, scm_less_p): Don't pass NaN to mpz_cmp_d. > * tests/numbers.test (=, <): Add tests involving NaNs. I applied this change. I left in the tests on complex numbers in `='; someone smarter than me will have to advise whether it's true in fact that they're not reached (on account of the imaginary part always being non-zero). _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel