From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.bugs Subject: Re: scm_num_eq Date: Fri, 23 Jan 2004 02:21:36 +0100 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <8765f34fz3.fsf@zagadka.ping.de> References: <1074819318.23546.317.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074820987 22860 80.91.224.253 (23 Jan 2004 01:23:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 01:23:07 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jan 23 02:23:00 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 1Ajq2F-0004B5-00 for ; Fri, 23 Jan 2004 02:22:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ajq1i-0003kG-TO for guile-bugs@m.gmane.org; Thu, 22 Jan 2004 20:22:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ajq1U-0003ef-Ro for bug-guile@gnu.org; Thu, 22 Jan 2004 20:22:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ajq0y-0003Rf-CU for bug-guile@gnu.org; Thu, 22 Jan 2004 20:22:11 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ajq0x-0003Qd-8S for bug-guile@gnu.org; Thu, 22 Jan 2004 20:21:39 -0500 Original-Received: from dialin.net17.dip92.dokom.de ([195.253.17.92] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1Ajq1m-0002dE-00 for bug-guile@gnu.org; Fri, 23 Jan 2004 02:22:30 +0100 Original-Received: (qmail 483 invoked by uid 1000); 23 Jan 2004 01:21:36 -0000 Original-To: Roland Orre In-Reply-To: <1074819318.23546.317.camel@localhost> (Roland Orre's message of "Fri, 23 Jan 2004 01:55:18 +0100") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1127 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1127 Roland Orre writes: > Hi, > This code gives the expected result: > if (SCM_EQ_P(SCM_CDR(handle),SCM_MAKINUM(0))) > > but this code doesn't: > if (scm_num_eq_p(SCM_CDR(handle),SCM_MAKINUM(0))) > > as this latter code always gives false back. Hmm, it should always be true: scm_num_eq returns either SCM_BOOL_F or SCM_BOOL_T which are both true in the eyes of C. Try this: if (!SCM_NFALSEP (scm_num_eq_p(SCM_CDR(handle),SCM_MAKINUM(0)))) (Why don't we have SCM_TRUEP?) -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile