[Python-Dev] Integer Overflow
Martin v. Loewis
Thu, 14 Sep 2000 09:32:26 +0200
> Works for me (Windows). Local corruption? Compiler optimization error?
> Config screwup?
Config screwup. I simultaneously try glibc betas, and 2.1.93 manages
to define LONG_BIT as 64 (due to testing whether INT_MAX is 2147483647
at a time when INT_MAX is not yet defined). Shifting by LONG_BIT/2 is
then a no-op, so ah=a, bh=b in int_mul. gcc did warn about this, but I
ignored/forgot about the warning.
I reported that to the glibc people, and worked-around it locally.
Sorry for the confusion,