Artifacts Associated With Ticket 1710132
Ticket change [d750af0b42] (rid 123963) by afredd on 2007-04-30 15:35:16:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Consider, % info pat 8.5a6 % expr int(9999999999999999999999999999999999999999999999) -1 but % info pat 8.4.14 % expr int(9999999999999999999999999999999999999999999999) integer value too large to represent Also get similar behaviour with wide(). Judging from the code the new behaviour should be to return the result that is the bottom sizeof(the-relevent-C-integer-type) bits of the argument (ExprIntFunc), but the result is getting set to -1. mp_mod_2d() looks a possible culprit.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "afredd"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "[expr int(9...9)] returns -1 ... Is this a bug?"
- type initialized to: "Bug"
Ticket change [17b3ecc135] (rid 122540) by afredd on 2007-04-30 23:28:40:
- 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"
Ticket change [f16eb8ffa9] (rid 109362) by afredd on 2007-04-30 23:29:52:
- closedate changed to: "2007-04-30T16:29:52"
- closer changed to: "afredd"
- resolution changed to: "Rejected"
- status changed to: "Deleted"