Artifact c08c45c540ab75aeae33551a096f7d7f097ec6b82a5e0ffb7eb563b55479dece:
- File typeparse/noyau/fonctions-conversion.patch — part of check-in [430cb4983d] at 2026-11-07 04:41:00 on branch tip-764_tcl90 — Add a 4 steps developpement example : 1. prototype as bare tcl proc; 2. debugging; 3. type tcl version; 4. C implementation. Correcting (user: Florentis, size: 537) [annotate] [blame] [check-ins using]
--- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.c @@ -3277,11 +3277,12 @@ * Restore any saved numWords value. */ numWords = nodePtr->left; - if (nodePtr - 1 == rootPtr ) { - convert = 0; - } else { - convert = 1; - } + /* + * v16y : as in Tcl 9.0, the result of a function is converted + * (abs(0x10) is 16). INST_TRY_CVT_TO_NUMERIC leaves a value that + * is not a number (a tuple, a list) as it is. + */ + convert = 1; break; case LIST: TclEmitInstInt4(INST_LIST, numWords, envPtr);