On 2/24/08, Heinrich Taube <[EMAIL PROTECTED]> 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) { ... }


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to