summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2024-03-22 19:15:30 (GMT)
committersebres <sebres@users.sourceforge.net>2024-03-22 19:15:30 (GMT)
commit730f68f30c3a5c0d8d52ee40de257338c657d927 (patch)
tree0f23d6c5c1567d708fd1bf8e5c1f9d17a11fde17 /unix/tclUnixTest.c
parentea2e6b81903423c914c0681ea329adbd7061a3fd (diff)
downloadtcl-730f68f30c3a5c0d8d52ee40de257338c657d927.zip
tcl-730f68f30c3a5c0d8d52ee40de257338c657d927.tar.gz
tcl-730f68f30c3a5c0d8d52ee40de257338c657d927.tar.bz2
fix for [1f40aa83c552f597]: the overflow check could mistakenly pass in some cases (so basically expects div 10 to check it properly);
optimizes both str2int, since we don't need to check it for most cases at all, thus definitely faster now (O(n)+O(1) vs. O(n)+O(n) and also has fewer branch mispredictions).
Diffstat (limited to 'unix/tclUnixTest.c')
0 files changed, 0 insertions, 0 deletions