Fixed limits for float, double & long double types
authorRyan Jendoubi <ryan.jendoubi@gmail.com>
Sat, 7 Aug 2010 17:29:54 +0000 (18:29 +0100)
committerRyan Jendoubi <ryan.jendoubi@gmail.com>
Sat, 7 Aug 2010 17:29:54 +0000 (18:29 +0100)
commit4e85867b5ba1864c7a06c109e7ec65d9e8c6b5d4
treeb618286073efb470bb3f49d2c653ebaa6923c644
parentb2b868002dbe6fef09065ce794b01eab9858a0ea
Fixed limits for float, double & long double types

Apparently C's < and > operators aren't fullproof. _validate_for_type
was thinking that 0 was smaller than DBL_MIN. Fixed along the lines
of if( (a - b) > DBL_EPSILON ).

modified:   Ctypes.xs
Ctypes.xs