Files
cpython/Modules
Guido van Rossum c554505ca1 Trent Mick:
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.]
2000-05-08 14:29:38 +00:00
..
2000-03-28 20:29:59 +00:00
2000-05-03 22:30:13 +00:00
2000-05-02 18:34:30 +00:00
1997-04-29 21:34:16 +00:00
1997-04-29 20:31:59 +00:00
1997-10-01 04:29:29 +00:00
2000-05-08 14:29:38 +00:00
1996-08-19 22:12:39 +00:00
2000-05-03 02:44:55 +00:00
1998-12-07 14:28:47 +00:00
1999-04-10 15:48:23 +00:00
2000-05-03 22:34:12 +00:00
1996-12-10 00:32:31 +00:00
2000-04-26 20:40:13 +00:00
1996-01-26 21:10:22 +00:00
1996-10-25 14:44:06 +00:00