Skip to content
Tcl Source Code Artifact [ab2e2016c0]
Login

Artifact [ab2e2016c0]

Artifact ab2e2016c06b782fd580d0d63d88de2d7a839b62c165f8c625aa0d0c1922ac84:

Ticket change [ab2e2016c0] - Closed ticket [1f40aa83c552f597|1f40aa83c5]: <i>crash with CFLAGS=-ftrapv</i> plus 6 other changes by sebres on 2024-03-22 19:31:46.
D 2024-03-22T19:31:46.389
J closedate 2460392.31373135
J closer sebres
J icomment Fixed\snow\sin\s[4fa26c98f225a44f]:\sthe\soverflow\scheck\scould\sindeed\smistakenly\spass\sin\ssome\scases\s(so\sbasically\sneeds\s<i>div\s10</i>\sto\sdo\sit\sproperly);\r\n\r\nAdditionally\sI\soptimized\sboth\sstr2int\snow,\sbecause\swe\sdon't\sneed\sto\scheck\sit\sfor\smost\scases\sat\sall\s(up\sto\s10\schar\sand\s18\schars\saccordingly),\sthus\sdefinitely\sfaster\snow\s(bounds\s<b><code>O(n)+O(1)\svs.\sO(n)+O(n)</code></b>\sin\smost\scases,\sand\shas\salso\sfewer\sbranch\smispredictions\snow,\sessentially\salmost\snone\sanymore).<br/>\r\nThus\sclosed.\r\n\r\nP.S.\sI\smoved\strap-pragma\sback,\sbecause\salthough\swe\smay\sdon't\shave\stests\sright\snow,\sbut\ssomeone\scan\sindeed\scompile\sit\swith\strapping,\sand\sit\scan\sdefinitely\soverflow\sin\sformat-scan,\sso\swould\scrash\sin\sthat\s(surely\sobscure)\scases.\sSo\sif\sit\sis\sknown,\sintentional\scode-piece,\smade\son\spurpose,\swhy\snot\sdisable\sthe\strap?
J login sebres
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K 1f40aa83c552f597c7aa2e01c7a3a5a2a3fe7c1c
U sebres
Z 8d2af2097eec90ce18ed2e6c8cb14f55