chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: endian-port


From: Shawn Rutledge
Subject: [Chicken-users] Re: endian-port
Date: Mon, 22 Feb 2010 23:50:54 -0700

On Mon, Feb 22, 2010 at 7:34 PM, Shawn Rutledge
<address@hidden> wrote:
> Functions like endian_lowio_read_int8 return by value, but
> endian_lowio_read_ieee_float32 set a value into a passed pointer, so
> wonder why that is... anyway seems to be where the problem is.  Maybe
> it's done that way because of NaN?  But usually NaN is a valid value,
> and can be tested for with isnan().

And indeed it seems to work OK if I make those functions return
double, just as the integer ones return ints/longs.  I can still store
a +nan.0 into a file, and read it back successfully.  I regenerated
the swig interface too.




reply via email to

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