<i>[expr int(9...9)] returns -1 ... Is this a bug?</i>.
by
.
D 2007-04-30T15:35:16
J assignee dgp
J cmimetype text/plain
J comment Consider,\n\n%\sinfo\spat\n8.5a6\n%\sexpr\sint(9999999999999999999999999999999999999999999999)\n-1\n\nbut\n\n%\sinfo\spat\n8.4.14\n%\sexpr\sint(9999999999999999999999999999999999999999999999)\ninteger\svalue\stoo\slarge\sto\srepresent\n\n\nAlso\sget\ssimilar\sbehaviour\swith\swide().\n\nJudging\sfrom\sthe\scode\sthe\snew\sbehaviour\sshould\sbe\nto\sreturn\sthe\sresult\sthat\sis\sthe\sbottom\nsizeof(the-relevent-C-integer-type)\sbits\sof\sthe\nargument\s(ExprIntFunc),\sbut\sthe\sresult\sis\sgetting\sset\nto\s-1.\smp_mod_2d()\slooks\sa\spossible\sculprit.\n\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter afredd
J subsystem 48.\sNumber\sHandling
J title [expr\sint(9...9)]\sreturns\s-1\s...\sIs\sthis\sa\sbug?
J type Bug
K 1710132fffffffffffffffffffffffffffffffff
U afredd
Z b6ed5fd64e14a23138c27ed84c794cb3