Message28412
Logged In: YES
user_id=580910
This could quite easily be fixed by testing for NaN in PyLong_FromDouble, such
as the attached patch. This works correctly on OSX, but I have no idea if this will
work on other platforms, that depends on how portable the already existing
Py_IS_NAN macro is. C99 also introduces an fpclassify and isnan functions that
could be used (Py_IS_NAN uses neither because Python is written in C89 instead
of C99). |
|
Date |
User |
Action |
Args |
2007-08-23 14:39:47 | admin | link | issue1481296 messages |
2007-08-23 14:39:47 | admin | create | |
|