<i>bug in single-argument 'max' with bignums</i> status still Closed with 5 other changes
by
.
D 2025-11-11T09:57:03.073
J closedate 2460990.9146189
J closer apnadkarni
J icomment Jan,\r\n\r\n-\sThe\sbug\sis\sin\sthe\sfunction\s`TclCompareTwoNumbers`\swhich\sdoes\snot\shandle\sthe\scase\sof\sthe\stwo\sarguments\svaluePtr\sand\svalue2Ptr\sbeing\sequal.\r\n-\sYour\scommit\sfixes\sthis\sat\sthe\scall\ssite\sin\s`ExprMaxMinFunc`\sby\snot\scalling\s`TclCompareTwoNumbers`\sin\sthe\scase\sof\sa\ssingle\sargument.\r\n-\sThis\sleaves\sthe\sactual\sbug\sin\s`TclCompareTwoNumbers`\sin\splace\smeaning\sany\sexisting\sor\sfuture\scaller\swill\sbe\ssubject\sto\sthe\ssame\sfailure.\r\n\r\nThat\sis\snot\san\sappropriate\sfix.\sIf\syou\sinsist\son\skeeping\sthe\suse\sof\s`Tcl_TakeBignumFromObj`\sand\savoid\s`Tcl_GetBignumFromObj`\sfor\swhatever\sreason,\sat\sthe\svery\sleast\syou\sshould\spick\sup\sSergey's\schanges\sto\s`Tcl_TakeBignumFromObj`\sas\swell.\r\n\r\nFWIW,\sI\sstill\sprefer\sto\ssimply\sreplace\sTake\swith\sGet\sinstead\sand\snot\srequire\sany\schanges\sat\sthe\scall\ssite\sin\s`ExprMaxMinFunc`.\sThe\sTake\sform,\seven\swith\sSergey's\schanges,\sdoes\snot\sbuy\syou\sanything.\sA\snew\sbignum\shas\sto\sbe\screated\sin\seither\scase.
J login apnadkarni
J mimetype text/x-markdown
K 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
U apnadkarni
Z 12a25f00a527d376b72f59eeb7a8a831