]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport of Tim's checkin 1.35:
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:26:58 +0000 (14:26 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:26:58 +0000 (14:26 +0000)
commitb24ffe47ae516d4620df3d7ce32d2108fc398d18
tree9b90a6b82ba3f5252105b5e9c5765631642d0eed
parent7383e7a19cf471fa592f04db4be22844ba65d309
Backport of Tim's checkin 1.35:

SF bug 434186: 0x80000000/2 != 0x80000000>>1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder <wink> ...
Lib/test/test_b1.py