Victor Stinner c60542b12b pytime: add _PyTime_check_mul_overflow() macro to avoid undefined behaviour
Overflow test in test_FromSecondsObject() fails on FreeBSD 10.0 buildbot which
uses clang. clang implements more aggressive optimization which gives
different result than GCC on undefined behaviours.

Check if a multiplication will overflow, instead of checking if a
multiplicatin had overflowed, to avoid undefined behaviour.

Add also debug information if the test on overflow fails.
2015-09-10 15:55:07 +02:00
..
2015-08-24 20:23:27 -07:00
2015-09-03 12:57:11 +02:00
2015-07-27 12:57:21 +02:00
2015-03-18 15:01:44 +01:00
2015-02-14 15:17:47 -05:00
2014-12-31 18:10:13 -06:00
2015-08-24 20:23:27 -07:00
2015-09-04 17:29:57 +02:00

Miscellaneous source files for the main Python shared library