Roland Orre <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile
