Skip to content
Tcl Source Code History Of Ticket 908375ffffffffff
Login

History Of Ticket 908375ffffffffff

Artifacts Associated With Ticket 908375ffffffffff

  1. Ticket change [b05aa7a3a3] (rid 97963) by hemanglavana on 2004-03-02 15:39:49:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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?
      
    4. foundin initialized to: "obsolete: 8.4.6"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hemanglavana"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to:
      round() doesn't support numbers larger than 31 bits
      
    11. type initialized to: "Bug"
  2. Ticket change [7c67e25670] (rid 97075) by dkf on 2004-03-02 23:40:16:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. subsystem changed to: "47. Bytecode Compiler"
    6. username: "dkf"
  3. Ticket change [89b8914d69] (rid 127275) by hemanglavana on 2004-03-05 22:23:02:

    1. 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
      % 
      
      
      
      
      
    2. login: "hemanglavana"
    3. mimetype: "text/plain"
    4. username: "hemanglavana"
  4. Add attachment "wideRound.patch" [0b413441d7] (rid 113952) by dkf on 2004-03-30 05:04:12.

  5. Ticket change [197accc175] (rid 122813) by dkf on 2004-03-30 05:04:12:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dkf"
  6. Ticket change [a798af8a42] (rid 98829) by hemanglavana on 2004-03-31 03:07:27:

    1. 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
      
      
      
    2. login: "hemanglavana"
    3. mimetype: "text/plain"
    4. username: "hemanglavana"
  7. Ticket change [c6e8a5d955] (rid 121850) by dkf on 2004-05-30 19:36:49:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Please review this and apply the patch if you think it is
      not too semantics-damaging.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  8. Ticket change [ee1b40fbb5] (rid 104026) by msofer on 2004-07-03 04:53:57:

    1. assignee changed to: "dkf"
    2. 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 :)
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  9. Add attachment "wideRound2.patch" [5c1355c096] (rid 118436) by msofer on 2004-07-03 04:53:57.

  10. Ticket change [33396edbbe] (rid 106552) by dkf on 2004-07-03 05:01:37:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [96df36039a] (rid 106401) by dkf on 2004-07-03 05:13:21:

    1. 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...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [d00b403b05] (rid 113095) by msofer on 2004-07-04 04:36:58:

    1. closedate changed to: "2004-07-03T21:36:58"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Fixed in HEAD; should I backport to core-8-4-branch?
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"
  13. Ticket change [fe43c836f6] (rid 108553) by msofer on 2004-07-04 05:13:29:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Backported.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"