Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

On Wed, May 12, 2010 at 12:59 PM, Mark Dickinson <rep...@bugs.python.org> wrote:
> (4) And please do restore the PyLong_FromDouble line in the main routine, 
> rather than using a C double-to-long cast.  The direct conversion again leads 
> to undefined behaviour for large doubles (cf. C99 6.3.1.4,p2).

I was planning to add a "if (dx > (double) LONG_MAX)" check.  Would
that be sufficient?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to