]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport of Tim's checkin 2.57:
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:24:12 +0000 (14:24 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:24:12 +0000 (14:24 +0000)
commit7383e7a19cf471fa592f04db4be22844ba65d309
treec21f18f1dc568b4c84167b39b51e40755429176e
parent44c3679296a13aec7b46c0939c183c4d86e7c7ab
Backport of Tim's checkin 2.57:

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> ...
Objects/intobject.c