• Guido van Rossum's avatar
    Trent Mick: · c554505c
    Guido van Rossum yazdı
    Fix overflow bug in ldexp(x, exp). The 'exp' argument maps to a C int for the
    math library call [double ldexp(double, int)], however the 'd'
    PyArg_ParseTuple formatter was used to yield a double, which was subsequently
    cast to an int. This could overflow.
    
    [GvR: mysteriously, on Solaris 2.7, ldexp(1, 2147483647) returns Inf
    while ldexp(1, 2147483646) raises OverflowError; this seems a bug in
    the math library (it also takes a real long time to compute the
    Inf outcome).  Does this point to a bug in the CHECK() macro?  It
    should have discovered that the result was outside the HUGE_VAL range.]
    c554505c
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...