Skip to content
Tcl Source Code Artifact [ffb154fd37]
Login

Artifact [ffb154fd37]

Artifact ffb154fd37adfcb6774ac142a4457920631923b3:

Ticket change [ffb154fd37] - Open ticket [1241572fffffffff|1241572fff]: <i>[expr] blind spot at corner of 32/64 bit integers</i> plus 4 other changes by rmax on 2005-12-10 00:32:22.
D 2005-12-10T00:32:22
J icomment Logged\sIn:\sYES\s\nuser_id=124643\n\nThis\sfix\sdepends\son\simplementation\sdefined\sbehaviour\sof\sthe\ncompiler\sand\sfails\swith\sgcc\s4.1.0.\sWhat\shappens\sis,\sthat\sthe\ncompiler\sdecides\sthat\sthe\snegation\sof\sa\snegative\snumber\scan\nnever\shave\sa\snegative\sresult,\sand\sso\sit\soptimizes\saway\sthe\nspecial\scase\sfor\sINT_MIN\sas\sdead\scode.\n\nThere\sare\stwo\ssolutions\sfor\sthis:\seither\srewriting\sthe\scode\nso\sthat\sit\sdoesn't\sdepend\son\sthe\sassumption\sthat\s-MIN_INT\s==\nMIN_INT,\sor\suse\sthe\s-fwrapv\sparameter\sto\sgcc,\sso\sthat\sit\nguarantees\sthe\swrapping\sbehaviour\sof\sintegers.\n\nSee\salso\shttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=25329\n
J login rmax
J mimetype text/plain
J status Open
J username rmax
K 1241572fffffffffffffffffffffffffffffffff
U rmax
Z e5bdd9ba80903e27b05e0fd4c70e2ba0