Artifacts Associated With Ticket 1ae976e237
Ticket change [77cb48425f] (rid 257810) by serhiy.storchaka on 2026-10-12 20:32:40:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<code>clock clicks -mi</code> is an error ("ambiguous option "-mi": must be -milliseconds or -microseconds"), but in compiled code 9.1 accepts it and returns microseconds: <verbatim> proc p {} {clock clicks -mi} p </verbatim> 9.0 compiles the option only if it is at least 4 characters long, so it gives the error in both cases. [507b920e63] (TIP 720) replaced that check with <code>IS_TOKEN_PREFIX(tokenPtr, 3, ...)</code>. Proposed fix in branch [/timeline?r=compile-clock-clicks-ambiguous|compile-clock-clicks-ambiguous]: require 4 characters again. Tests clock-33.7.1 and clock-33.7.2. - foundin initialized to: "9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "serhiy.storchaka"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to:
Compiled [clock clicks -mi] returns microseconds instead of an ambiguous option error
- type initialized to: "Bug"
Ticket change [bc4ca1b12f] (rid 257895) by jan.nijtmans on 2026-10-13 12:15:42:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461327.0109115392"
- closer changed to: "jan.nijtmans"
- comment changed to:
<code>clock clicks -mi</code> is an error ("ambiguous option "-mi": must be -milliseconds or -microseconds"), but in compiled code 9.1 accepts it and returns microseconds: <verbatim> proc p {} {clock clicks -mi} p </verbatim> 9.0 compiles the option only if it is at least 4 characters long, so it gives the error in both cases. [507b920e63] (TIP 720) replaced that check with <code>IS_TOKEN_PREFIX(tokenPtr, 3, ...)</code>. Proposed fix in branch [/timeline?r=compile-clock-clicks-ambiguous|compile-clock-clicks-ambiguous]: require 4 characters again. Tests clock-33.7.1 and clock-33.7.2. - icomment:
Fixed in [88c6ad4c756c8244|trunk] Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"