]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug 434186: 0x80000000/2 != 0x80000000>>1
authorTim Peters <tim.peters@gmail.com>
Mon, 18 Jun 2001 19:21:11 +0000 (19:21 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 18 Jun 2001 19:21:11 +0000 (19:21 +0000)
commit1dad6a86de55c38da5c356c2c6d81be8ff7884b1
tree963ebc4365437512ddaf162bb67b8da40cb05190
parent888aa2681925cb14adda8a85dbf96e848ecdac40
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> ...
Bugfix candidate.
Lib/test/test_b1.py
Objects/intobject.c