<i>bug in single-argument 'max' with bignums</i> status still Pending with 3 other changes
by
.
D 2025-11-11T14:09:13.950
J icomment >\sBut,\sIMHO\sit\sis\snot\scorrect\s-\seven\swith\srefCounts\s1\s(or\s0),\sone\scan't\sguarantee\sthat\sthe\sobject\swill\sbe\sunused\shereafter\r\n\r\nI'm\strying\sto\screate\sa\stest-case,\sshowing\sthe\sremaining\sproblem\s(if\sthere\sis\sone),\sbut\sI'm\snot\sgetting\svery\sfar.\sSomething\slike:\r\n<pre>\r\n$\stclsh9.0\r\n%\stcl::unsupported::representation\s[expr\s{max(9999999999999999999999999999+1,0)}]\r\nvalue\sis\sa\sbignum\swith\sa\srefcount\sof\s2,\sobject\spointer\sat\s0xa0009c0c0,\sinternal\srepresentation\s0xa000dfc30:0x100002,\sno\sstring\srepresentation\r\n%\sputs\s[expr\s{max(9999999999999999999999999999+1,0)}]\r\n10000000000000000000000000000\r\n</pre>\r\n\r\nThis\sworks\sas\sexpected.\sAny\sidea?
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
U jan.nijtmans
Z 566a78f1fc962b691c623b36081ba720