]> granicus.if.org Git - python/commit
SF bug #488480: integer multiply to return -max_int-1.
authorTim Peters <tim.peters@gmail.com>
Tue, 4 Dec 2001 23:05:10 +0000 (23:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 4 Dec 2001 23:05:10 +0000 (23:05 +0000)
commita3c01ce696cdbc0d8236a002cc76103db5662a1b
tree63424e93418396b4304ad7ee48ef78f1eeea25ee
parentd2a557e51eeb3d6fc444caab496d855dcbc2953b
SF bug #488480: integer multiply to return -max_int-1.
int_mul():  new and vastly simpler overflow checking.  Whether it's
faster or slower will likely vary across platforms, favoring boxes
with fast floating point.  OTOH, we no longer have to worry about
people shipping broken LONG_BIT definitions <0.9 wink>.
Lib/test/test_types.py
Objects/intobject.c