chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] C_truep( C_fixnump( w ))


From: Jim Ursetto
Subject: Re: [Chicken-users] C_truep( C_fixnump( w ))
Date: Sun, 24 Feb 2008 13:15:07 -0600

On 2/24/08, Heinrich Taube <address@hidden> wrote:
> im sure this must be something stupid but i dont understand why it
> crashes if its not float data

> C_word w = C_u_i_car( lyst );
> if (C_truep( C_flonump( w ) )) {


Heinrich,

Try if (C_truep(C_blockp(w)) && C_truep(C_flonump(w))) {...}
and see if it helps.

Since you're doing this completely in C, you don't really
have to convert to a scheme boolean either:

if (!C_immediatep(w) && C_block_header(x) == C_FLONUM_TAG) { ... }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]