<i>format problem with wide ints</i> status still Open with 4 other changes
by
.
D 2004-07-16T11:31:53
J icomment Logged\sIn:\sYES\s\nuser_id=72656\n\nI\sfound\sthat\sthis:\n\n-\s\s\s\sif\s(wideValue>ULONG_MAX\s||\swideValue<LONG_MIN)\s{\n+\s\s\s\sif\s(wideValue>LONG_MAX\s||\swideValue<LONG_MIN)\s{\n\nat\sline\s2209\sof\stclCmdAH.c:Tcl_FormatObjCmd\smade\sit\swork\son\nSolaris-64,\swhich\sindicates\sa\ssign\sextension\sbug\sin\sthe\ncompiler.\nNote\sthat\sthe\sabove\sfix\sisn't\sactually\scorrect\scode\sfor\sthis\ncase\s(although\sI\swonder\swhether\swe\sshould\sbe\smingling\nunsigned\schecks\sfor\s%d\sas\swell\sas\sthe\s%[uoxX]\sthis\scase\scovers).\n\nAlso,\sa\sshorter\stest\scase\sis:\n\net\sx\s[expr\s{wide(1)}]\nset\scode\s[catch\s{format\s"%d\sbytes"\s$x}\sres]\nputs\s"1st\sformat\s($code):\s$res"\nset\scode\s[catch\s{format\s"%d\sbytes"\s$x}\sres]\nputs\s"2nd\sformat\s($code):\s$res"\n\n
J login hobbs
J mimetype text/plain
J username hobbs
K 991371ffffffffffffffffffffffffffffffffff
U hobbs
Z 81e77a4c7364ef547d39859b04912802