Skip to content
Tcl Source Code History Of Ticket 1710132fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1710132fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1710132fffffffffffffffffffffffffffffffff

  1. Ticket change [d750af0b42] (rid 123963) by afredd on 2007-04-30 15:35:16:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "afredd"
    10. subsystem initialized to: "48. Number Handling"
    11. title initialized to: "[expr int(9...9)] returns -1 ... Is this a bug?"
    12. type initialized to: "Bug"
  2. Ticket change [17b3ecc135] (rid 122540) by afredd on 2007-04-30 23:28:40:

    1. closedate changed to: "2007-04-30T16:28:40"
    2. closer changed to: "afredd"
    3. 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 :-)
      
      
      
      
    4. login: "afredd"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "afredd"
  3. Ticket change [f16eb8ffa9] (rid 109362) by afredd on 2007-04-30 23:29:52:

    1. closedate changed to: "2007-04-30T16:29:52"
    2. closer changed to: "afredd"
    3. resolution changed to: "Rejected"
    4. status changed to: "Deleted"