<i>No processing of after events</i> status still Open with 3 other changes
by
.
D 2017-02-13T13:11:44.546
J icomment So\sthe\sunderlying\sproblem\shere\sis\sthat\sTcl_GetWideIntFromObj()\sproduces\sa\snegative\sresult\sfor\sbignum\svalues\sbetween\sWIDE_MAX+1\sand\sUWIDE_MAX.\s\sThe\smanual\sseems\spretty\sclear\sthat\sit\sshouldn't,\sand\sI'm\scertain\sit\sbreaks\sthe\sexpectations\sof\scallers\selsewhere.\s\sStraightforward\sto\sfix\sin\sitself,\sbut\snothing\sis\ssimple\s...\r\n\r\nTcl_GetLongFromObj\sand\seven\sTcl_GetIntFromObj\sare\salso\saffected:\r\n\r\n%\stestgetint\s[expr\s{1<<31}]\r\n-2147483648\r\n\r\nGLFO\sand\sGWIFO\sare\snot\sexposed\sto\sthe\stest\ssuite;\sthey\swill\sneed\sto\sbe\sto\sshepherd\sthis\schange\sin.\r\n\r\nmathfunc.n\sclearly\sstates\sthat\swide()\sand\sint()\struncate\sbitwise\s..\sand\sat\sleast\sExprWideFunc\srelies\son\sthe\scooperation\sof\sTcl_GetWideIntFromObj's\scooperation\sto\sdo\sso:\r\n\r\n%\sexpr\s{0\s>\sint(1\s<<\s($tcl_platform(wordSize)*8\s-\s1))}\r\n1\r\n\r\n\r\nI\sthink\smathfunc's\scontract\sis\swell-defined\sin\sthe\spresence\sof\snegative\sbignums,\sbut\sthinking\sabout\sit\sis\sstarting\sto\shurt\smy\shead.
J login aspect
J mimetype text/plain
K 96c3f3b47d13052efb84fefb9328a195f407d859
U aspect
Z 864203d7d4eba254632d0ff2e36763a0