Artifacts Associated With Ticket 908375ffffffffffffffffffffffffffffffffff
Ticket change [b05aa7a3a3] (rid 97963) by hemanglavana on 2004-03-02 15:39:49:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This was just reported by one of our users today. It seems that round() doesn't seem to handle numbers larger than 31 bits: godel:49> /tmp/hlavana/tcltk/bin/tclsh8.4 % info patch 8.4.6 % expr round( 2147483647.1 ) 2147483647 % expr round( 2147483648.1 ) integer value too large to represent % expr {2147483648+1} 2147483649 % exit godel:50> If this is a bug, would it be possible to get it fixed for tcl8.4.6 or is it too late now? - foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "hemanglavana"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
round() doesn't support numbers larger than 31 bits
- type initialized to: "Bug"
Ticket change [7c67e25670] (rid 97075) by dkf on 2004-03-02 23:40:16:
- icomment:
Logged In: YES user_id=79902 It's too late for 8.4.6 as we've already got a release candidate out for distribution testing (or whatever the proper term is.) With any change we'd have to start the whole release process over again. Sorry. :^( I'll make this a high prio fix for 8.5a1 though and backport to the 8.4 branch.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dkf"
- icomment:
Ticket change [89b8914d69] (rid 127275) by hemanglavana on 2004-03-05 22:23:02:
- icomment:
Logged In: YES user_id=81875 The current workaround for this issue is to use the wide() and add 0.5 to the number for rounding: hlavana-u5:81> tclsh % expr wide(2147483648.1) 2147483648 % expr wide(2147483648.9) 2147483648 % expr wide(2147483648.9+0.5) 2147483649 % expr wide(2147483648.1+0.5) 2147483648 %
- login: "hemanglavana"
- mimetype: "text/plain"
- username: "hemanglavana"
- icomment:
Add attachment "wideRound.patch" [0b413441d7] (rid 113952) by dkf on 2004-03-30 05:04:12.
Ticket change [197accc175] (rid 122813) by dkf on 2004-03-30 05:04:12:
- icomment:
File Added - 81829: wideRound.patch Logged In: YES user_id=79902 Try this patch. The downside is that the result from round() will normally be a wide now.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dkf"
- icomment:
Ticket change [a798af8a42] (rid 98829) by hemanglavana on 2004-03-31 03:07:27:
- icomment:
Logged In: YES user_id=81875 The patch seems to work fine: godel:148> /tmp/hlavana/tcltk/bin/tclsh8.5 % info patch 8.5a2 % expr round( 2147483648.1 ) 2147483648 % expr round( 2147483648.9 ) 2147483649 % exit godel:149> I don't see the result of round() as wide to be an issue. -- thanks
- login: "hemanglavana"
- mimetype: "text/plain"
- username: "hemanglavana"
- icomment:
Ticket change [c6e8a5d955] (rid 121850) by dkf on 2004-05-30 19:36:49:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=79902 Please review this and apply the patch if you think it is not too semantics-damaging.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [ee1b40fbb5] (rid 104026) by msofer on 2004-07-03 04:53:57:
- assignee changed to: "dkf"
- icomment:
File Added - 92706: wideRound2.patch Logged In: YES user_id=148712 I do not like coercing all results of 'round' to wide; attached a patch that only does this when necessary. Your turn :)
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Add attachment "wideRound2.patch" [5c1355c096] (rid 118436) by msofer on 2004-07-03 04:53:57.
Ticket change [33396edbbe] (rid 106552) by dkf on 2004-07-03 05:01:37:
- icomment:
Logged In: YES user_id=79902 I don't know what answer anyone expects out of round() in the first place. :/ So long as we have a consistent story, I don't really care.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [96df36039a] (rid 106401) by dkf on 2004-07-03 05:13:21:
- icomment:
Logged In: YES user_id=79902 I suppose if we restrict ourselves to just producing wides in the case where we would have failed previously, we'll be monotonically improving things...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d00b403b05] (rid 113095) by msofer on 2004-07-04 04:36:58:
- closedate changed to: "2004-07-03T21:36:58"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Fixed in HEAD; should I backport to core-8-4-branch?
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"
Ticket change [fe43c836f6] (rid 108553) by msofer on 2004-07-04 05:13:29:
- icomment:
Logged In: YES user_id=148712 Backported.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment: