.
D 2021-09-23T14:14:41.344
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Platform:\sTcl8.7a5\sbuilt\son\sLinux\sx86_64\swith\stcllib\s1.20\sinstalled\r\n\r\nTo\sreproduce:\sStart\stclsh8.7\sand\senter\s'package\srequire\scrc16',\stclsh\r\nnever\sreturns\sto\sthe\sprompt.\r\n\r\nThe\shang\sappears\sto\sbe\sdue\sto\sa\schange\sin\sthe\sbehaviour\sof\sint()\sbetween\r\nTcl\s8.6\sand\s8.7.\sThe\scode\sin\scrc16.tcl\sthat\scauses\sthe\shang\sis\sincluded\r\nbelow,\sthe\ssame\scode\scan\salso\sbe\sfound\sin\scrc32.tcl.\r\n\r\n#\scalculate\sthe\ssign\sbit\sfor\sthe\scurrent\splatform.\r\nvariable\ssignbit\r\nif\s{![info\sexists\ssignbit]}\s{\r\n\s\s\s\svariable\sv\r\n\s\s\s\sfor\s{set\sv\s1}\s{int($v)\s!=\s0}\s{set\ssignbit\s$v;\sset\sv\s[expr\s{$v<<1}]}\s{}\r\n\s\s\s\sunset\sv\r\n}\r\n\r\nUnder\sTcl\s8.6,\sint($v)\sreturns\szero\swhen\sthe\snative\sword-length\sis\sexceeded,\r\nunder\s8.7\sit\sdoesn't.\r\n\r\nTcl\s8.6.11:\r\n%\sexpr\sint(18446744073709551616)\r\n0\r\n%\s\r\nTcl\s8.7a5:\r\n%\s\sexpr\sint(18446744073709551616)\r\n18446744073709551616\r\n%
J foundin 8.7a5
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 8e5a305d42b9381cdca00d58075ee28d965f6ab0
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 17.\sCommands\sI-L
J title Tcl\s8.7a5\shangs\sloading\spackage\scrc16\sor\scrc32\sfrom\stcllib\s1.20
J type Bug
K 079d72381d84445b3e75b4508a5e1ba1b493c768
U anonymous
Z 78881b28666cbb057a4117d368d81e14