Skip to content
Tcl Source Code Artifact [66d2dbd949]
Login

Artifact [66d2dbd949]

Artifact 66d2dbd9494dba3b494dd23375644d681e8a57c1:

Ticket change [66d2dbd949] - Ticket [542588ffffffffff|542588ffff] <i>bug in expr error handler</i> status still Open with 4 other changes by msofer on 2002-04-18 04:12:31.
D 2002-04-18T04:12:31
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nNo,\sit\snever\sgets\sto\s'abs';\snote\sthat\sit\sis\s'-'\scomplaining\nabout\sa\snon\svalid\soperand.\sDoubles\sare\sacceptable\soperands\nfor\s'abs'.\n\nLook\sat\swhat\sis\shappening\sin\sINST_SUB:\sTclLooksLikeInt\nreturns\s1,\sso\sGetIntFromObj\sis\scalled\sand\sit\sfails,\sso\sthat\nIllegalExprOperandType\sgets\scalled.\sGetDoubleFromObj\sis\nnever\scalled\s(it\sis\scalled\sonly\swhen\sTclLooksLikeInt\sfails).\s\n\nThe\sproblem\sis\sindeed\sthat\sIllegalExprOperandType\sis\snot\nexpecting\sto\sreceive\s"too\slarge\sintegers".\sThe\slocal\sfix\nthere\swill\sproduce\ssomething\slike\n\n%\sexpr\s{\sabs($end\s-\s$begin)\s}\ncan't\suse\sinteger\svalue\stoo\slarge\sto\srepresent\sas\soperand\sof\n"-"\s\n\nThe\scase\n\n%\sexpr\sabs($end\s-\s$begin)\ninteger\svalue\stoo\slarge\sto\srepresent\s\n\nis\scaught\searlier,\sbefore\ssubtraction\sis\sever\sattempted.\n
J login msofer
J mimetype text/plain
J username msofer
K 542588ffffffffffffffffffffffffffffffffff
U msofer
Z 55b72cbb742a24b2ae4f59e18558709f