Skip to content
Tcl Source Code History Of Ticket 920e393634
Login

History Of Ticket 920e393634

Artifacts Associated With Ticket 920e393634

  1. Ticket change [8d8b72a8cc] (rid 217349) by pointsman on 2023-08-25 13:57:59:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      With [73da5acb07c] on 64-bit linux
      
      expr {7244019458077122840 << 1}
      
      returns 14488038916154245680 to me.
      
      With same version on 64-bit Windows (mingw-build) it
      
      retuns -3958705157555305936 to me.
      
      On the same windows 10 box, build with the sam tool chain
      8.6.13 agrees with the result on linux.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "pointsman"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "pointsman"
    14. subsystem initialized to: "16. Commands A-H"
    15. title initialized to: "expr {7244019458077122840 << 1}"
    16. type initialized to: "Bug"
  2. Ticket change [081935f53a] (rid 217372) by apnadkarni on 2023-08-25 16:41:02:

    1. icomment:
      Just to add a bit more information, the breakage is when the **result** exceeds TCL_WIDE_MAX.
      
      ```
      % expr {0x3fffffffffffffff << 1}
      9223372036854775806
      % expr {0x4000000000000000 << 1}
      -9223372036854775808
      ```
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  3. Ticket change [90b3f094ea] (rid 217382) by jan.nijtmans on 2023-08-25 21:06:49:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Didn't try it on 32-bit hardware yet, but I'm quite sure that the "1UL" [https://core.tcl-lang.org/tcl/artifact/ed18773ed0137cb7?ln=6154|here] was the real problem.
      
      Commit: [2ed2ec021b6959ee]
      
      Thanks!
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  4. Ticket change [8eea10d08b] (rid 217383) by jan.nijtmans on 2023-08-25 21:07:48:

    1. login: "jan.nijtmans"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
    4. status changed to: "Pending"
  5. Ticket change [73a09c033b] (rid 218008) by jan.nijtmans on 2023-09-12 12:28:23:

    1. closedate changed to: "2460200.01971956"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"