.
D 2022-03-14T07:49:32.112
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I'm\sseeing\sa\splatform\sdependency\sin\sthe\sTcl\s"scan"\scommand\swhen\sit\scomes\sto\sconversion\sof\s\soversized\spositive\sdecimal\snumbers.\sAccording\sto\sthe\sdocs,\s"scan\s...\s%d"\sis\ssupposed\sto\sreturn\sthe\sgreatest\sinteger\svalue\sthat\smakes\ssense\s-\saccording\sto\sthe\sgiven\ssize\smodifiers.\sWithout\sany\ssize\smodifier\s(just\s%d)\sI'd\sexpect\sto\sget\sa\slarge\spositive\snumber.\sBut\sinstead,\sI\sget\sthis\son\sa\sLP64\smachine\s(x64\sGNU/Linux):\r\n\r\n%\sinfo\spatchlevel\r\n8.6.4\r\n%\sset\stcl_platform(wordSize)\r\n8\r\n%\sscan\s11111111111111111111\s%d\r\n-7335632962598440505\r\n\r\n...whereas\son\sa\sILP32\smachine\s(x86\sGNU/Linux)\sI\sget\sthis:\r\n%\sinfo\spatchlevel\r\n8.6.4\r\n%\sset\stcl_platform(wordSize)\r\n4\r\n%\sscan\s11111111111111111111\s%d\r\n2147483647\r\n\r\nI've\sfound\sold\sbug\s#1011860\s[https://core.tcl-lang.org/tcl/tktview/1011860fffffffffffff],\swhich\sseems\sto\sbe\srelated\sto\sthis.\r\n\r\nWhat's\sgoing\son\shere?
J foundin 8.6.4
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 7059cfaad662ca85cba09bbf879f8783c497066b
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 23.\s[scan]
J title [scan\s_\s%d]\s64-bit\sissue
J type Bug
K 0842331eba4e78318b795abcfddf84ad878311f1
U anonymous
Z 16b38b7911d63e6acca2f224aa814d98