Overview
| Artifact ID: | 17b3ecc1354076b41294775c5821cf9c9d9b6b1f |
|---|---|
| Ticket: | 1710132fffffffffffffffffffffffffffffffff
[expr int(9...9)] returns -1 ... Is this a bug? |
| User & Date: | afredd on 2007-04-30 23:28:40 |
Changes
- closedate changed to: "2007-04-30T16:28:40"
- closer changed to: "afredd"
- icomment:
Logged In: YES user_id=1386588 Originator: YES Doh... ought to have tried some other input numbers! I was only using long numbers of the form 99...9 and these happen to be be = N*(2**32) + (2**32 - 1) ie. when int()'d they should be -1. Adding another 9 to the test number is same as multiply by 10 and add 9. Add (-1 * 10 + 9) == -1 Funny :-)
- login: "afredd"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "afredd"