Skip to content
Tcl Source Code Artifact [0a563595b2]
Login

Artifact [0a563595b2]

Artifact 0a563595b2daa712e1ef3473ba86eca22d4e5030:

Ticket change [0a563595b2] - Ticket [1851567fffffffff|1851567fff] <i>expr returns incorrect results on M68K architecture</i> status still Open with 4 other changes by teopetuk on 2007-12-20 20:59:56.
D 2007-12-20T20:59:56
J icomment Logged\sIn:\sYES\s\nuser_id=410366\nOriginator:\sYES\n\nIt's\sa\sbug\sin\sfrexp()\sfunction.\sThe\sfollowing\sprogram:\n\n#include\s<math.h>\n#include\s<stdio.h>\n\nmain()\s{\n\s\s\s\s\s\s\s\sdouble\sv;\n\s\s\s\s\s\s\s\sint\se;\n\s\s\s\s\s\s\s\sv\s=\sfrexp(1.1,\s&e);\n\s\s\s\s\s\s\s\sprintf("%g,\s%d\\n",\sv,\se);\n\s\s\s\s\s\s\s\sv\s=\sfrexp(0.1,\s&e);\n\s\s\s\s\s\s\s\sprintf("%g,\s%d\\n",\sv,\se);\n}\n\nprints\sout\n0.55,\s1\n0.05,\s-2147483647\n\nwhich\sis\sobviously\swrong.\sThe\sresult\sshould\sbe\n0.55,\s1\n0.8,\s-3\n\nSo,\sthere's\sno\sbug\sin\sTcl\sitself.\n
J login teopetuk
J mimetype text/plain
J username teopetuk
K 1851567fffffffffffffffffffffffffffffffff
U teopetuk
Z 731366cc6e727f0ee188bd7b4fb3c6cd