Files
cpython/Lib
Tim Peters 307fa78107 SF bug #513866: Float/long comparison anomaly.
When an integer is compared to a float now, the int isn't coerced to float.
This avoids spurious overflow exceptions and insane results.  This should
compute correct results, without raising spurious exceptions, in all cases
now -- although I expect that what happens when an int/long is compared to
a NaN is still a platform accident.

Note that we had potential problems here even with "short" ints, on boxes
where sizeof(long)==8.  There's #ifdef'ed code here to handle that, but
I can't test it as intended.  I tested it by changing the #ifdef to
trigger on my 32-bit box instead.

I suppose this is a bugfix candidate, but I won't backport it.  It's
long-winded (for speed) and messy (because the problem is messy).  Note
that this also depends on a previous 2.4 patch that introduced
_Py_SwappedOp[] as an extern.
2004-09-23 08:06:40 +00:00
..
2004-09-12 03:49:31 +00:00
2004-09-22 12:39:26 +00:00
2004-08-20 03:47:14 +00:00
2004-08-31 11:38:12 +00:00
2004-09-01 13:10:32 +00:00
2004-02-12 17:35:32 +00:00
2004-07-07 20:54:48 +00:00
2003-11-20 13:38:01 +00:00
2004-05-18 04:24:02 +00:00
2004-02-12 17:35:32 +00:00
2004-09-21 03:24:24 +00:00
2004-08-31 11:38:12 +00:00
2004-09-06 07:04:09 +00:00
2004-09-20 18:08:31 +00:00
2004-08-30 13:39:50 +00:00
2004-02-12 17:35:32 +00:00
2004-08-07 16:51:30 +00:00
2004-02-12 17:35:32 +00:00
2004-08-18 15:13:41 +00:00
2004-05-14 16:31:56 +00:00
2004-08-31 13:31:42 +00:00
2004-02-12 17:35:32 +00:00
2004-07-07 20:54:48 +00:00
2004-01-18 20:29:55 +00:00
2004-08-31 11:38:12 +00:00
2003-12-17 20:43:33 +00:00
2004-08-31 11:38:12 +00:00
2004-08-07 21:44:37 +00:00