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

History Of Ticket 1770224fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1770224fffffffffffffffffffffffffffffffff

  1. Ticket change [7d4a50325e] (rid 97216) by dgp on 2007-08-08 18:57:44:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      For example:
      
      % >> -0x8000000000000001 0x8000000000000000
      0
      
      Result should be -1.  [>> $big $wide] is ok:
      
      % >> -0x8000000000000001 0x7fffffffffffffff
      -1
      
      And clearly, shifting that -1 one more bit
      ought to return -1 again, not 0.
      
      Perhaps a clue... it's not always broken:
      
      % >> -0x8000000000000000 0x8000000000000000
      -1
      
      
    4. foundin initialized to: "obsolete: 8.5a7"
    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: "dgp"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to: "[>> $big1 $big2] incorrectly returns 0 "
    12. type initialized to: "Bug"
  2. Ticket change [46e12dcd26] (rid 99596) by dgp on 2007-08-09 02:07:41:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      ok that last "not broken" example
      actually fits in a wide.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [f119dd41c0] (rid 109306) by dgp on 2007-08-09 02:35:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      ok, problem is that when TclGetNumberFromObj()
      returns a bignum, it uses some temp space.
      The caller is supposed to save the result before
      calling again.  The >> implementation code is
      not doing so, so when both arguments are bignums,
      we end up doing the operation with the second
      argument twice.
      
      This not only points the way to fixing this bug;
      it points out a whole project of code review to
      be done. 
      
      Ick.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "TclGetNumberFromObj caller must save result"
    5. username: "dgp"
  4. Add attachment "1770224.patch" [63dbd4d3d7] (rid 92655) by dgp on 2007-08-09 03:21:04.

  5. Ticket change [1006ae9485] (rid 94892) by dgp on 2007-08-09 03:21:05:

    1. icomment:
      
      
      File Added - 240469: 1770224.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Ok, problem did not show up elsewhere.
      Here's the patch.
      
      File Added: 1770224.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [6029c3c501] (rid 115947) by dgp on 2007-08-09 03:25:04:

    1. closedate changed to: "2007-08-08T20:25:04"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      committed.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"