Artifacts Associated With Ticket 920e393634
Ticket change [8d8b72a8cc] (rid 217349) by pointsman on 2023-08-25 13:57:59:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- 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. - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "pointsman"
- priority initialized to: "5 Medium"
- private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "pointsman"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "expr {7244019458077122840 << 1}"
- type initialized to: "Bug"
Ticket change [081935f53a] (rid 217372) by apnadkarni on 2023-08-25 16:41:02:
- 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 ``` - login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [90b3f094ea] (rid 217382) by jan.nijtmans on 2023-08-25 21:06:49:
- assignee changed to: "jan.nijtmans"
- 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!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [8eea10d08b] (rid 217383) by jan.nijtmans on 2023-08-25 21:07:48:
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [73a09c033b] (rid 218008) by jan.nijtmans on 2023-09-12 12:28:23:
- closedate changed to: "2460200.01971956"
- closer changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"