Overview
| Artifact ID: | 34bc53d0f9737414d4e588cdfe1c8fbbdaa8ccb1e8ff157a89f1793b256e077d |
|---|---|
| Ticket: | 96c3f3b47d13052efb84fefb9328a195f407d859
No processing of after events |
| User & Date: | serhiy.storchaka on 2026-10-19 18:00:22 |
Changes
- foundin changed to: "8.6.18"
- icomment:
Proposed fix for 8.6 in branch [/timeline?r=after-overflow-8-6|after-overflow-8-6], in the spirit of chw's patch: both forms of <nowiki>[after]</nowiki> add the delay with a new <tt>TimeAddMs()</tt>, which clamps the wakeup time (to 2038-01-19 where <tt>long</tt> is 32 bits) instead of letting it wrap. Tested with a MinGW Win64 build (32-bit <tt>long</tt>) under Wine: with <tt><nowiki>after [expr {2**40}] ...</nowiki></tt> pending, an <tt>after 200</tt> never fired before and fires after 201 ms now, and the blocking form no longer returns at once. Tests timer-11.3 and 11.4. Tcl 9 is not affected: <tt>Tcl_Time.sec</tt> is 64 bits there. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"