]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Repair portability of sign extension when reading signed ints on boxes
authorTim Peters <tim.peters@gmail.com>
Sun, 8 Apr 2001 23:39:38 +0000 (23:39 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 8 Apr 2001 23:39:38 +0000 (23:39 +0000)
commitf0e717bdb1729ba93f8f2524962ee95ab1d7d425
treed68c784ba9420c2d65df8680156838d2f66c6292
parent9cec8fba06e66e92769e56130d581ea569399563
Repair portability of sign extension when reading signed ints on boxes
where sizeof(long)==8.  This *was* broken on boxes where signed right
shifts didn't sign-extend, but not elsewhere.  Unfortunately, apart
from the Cray T3E I don't know of such a box, and Guido has so far
refused to buy me any Cray machines for home Python testing <wink>.

More immediately interesting would be if someone could please test
this on *any* sizeof(long)==8 box, to make sure I didn't break it.
Modules/structmodule.c