Skip to content
Tcl Source Code Artifact [acc0e46e74]
Login

Artifact [acc0e46e74]

Artifact acc0e46e7401a8e510c0e0c1c7f006675d8b9760:

Ticket change [acc0e46e74] - New ticket [868489ffffffffff|868489ffff] <i>Incorrect promotion of int to wide</i>. by kennykb on 2003-12-31 16:09:54.
D 2003-12-31T16:09:54
J assignee msofer
J cmimetype text/plain
J comment Consider\sthe\sfollowing:\n\nset\sx\s-2366755200\nstring\sis\sinteger\s$x\nset\sy\s[expr\s{\swide($x)\s}]\n\nThe\svalue\sof\sy\sthat\sresults\sis\s1928212096\n\nThe\sproblem\sis\sthat\sthe\sgenerated\scode\sfor\nthe\sexpression\ssees\sthe\s"integer"\sinternal\nrepresentation\sand\suses\sit,\seven\sthough\nreconverting\sthe\sstring\srep\swould\syield\sa\ndifferent\svalue.\s\sThe\sparticular\scode\sin\nquestion\sis\sin\sthe\s"ExprCallMathFunc"\nfunction\sin\stclExecute.c,\sbut\sthe\sproblem\nappears\sto\sbe\spretty\spervasive.\n\nIt\sappears\sto\sbe\sincorrect\sto\spromote\san\n"integer"\sto\sa\s"wide"\sif\sthe\s"integer"\shas\sa\nstring\srepresentation.
J foundin obsolete:\s8.4.5
J priority 5\sMedium
J resolution None
J status Open
J submitter kennykb
J subsystem 45.\sParsing\sand\sEval
J title Incorrect\spromotion\sof\sint\sto\swide
J type Support
K 868489ffffffffffffffffffffffffffffffffff
U kennykb
Z 406fbe8c2e9bf5d2f747971756f9b312