Message159713
| Author |
serhiy.storchaka |
| Recipients |
eric.smith, mark.dickinson, r.david.murray, serhiy.storchaka |
| Date |
2012年04月30日.17:56:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1335808723.27093.23.camel@raxxla> |
| In-reply-to |
<1335806183.53.0.810659725193.issue14700@psf.upfronthosting.co.za> |
| Content |
> Serhiy, what platform are you on?
32-bit Linux (Ubuntu), gcc 4.6. But it has to happen on any platform
with a 32-bit integer (for 64-bit use 9223372036854775808).
214748364*10/10 == 214748364 -- test passed
214748364*10 + ('8'-'0') == -2147483648 -- oops!
See also how is this problem solved in _struct.c. |
|