Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7218a85be68654b263b0219f141f9e63c2601643e80d8ab63b1c4b23b9a6e102
Ticket: 8afd93d3d360b933a8402157dccf4bb8a9c10026
Clock format fails on NetBSD 11.1 on Sparc64
User & Date: serhiy.storchaka on 2026-11-13 23:14:15
Changes

  1. icomment:
    The two fields were int until [bbb77cc456] (the fix of an overflow in clock add, before TIP 688 was merged) widened them, but the format and scan tables still access them as int. They only hold a time of day, so the fix in [2247d9b83c] is right, and clock.test passes with it.
    
    One side effect: the free-form parser stores its 64-bit numbers into these int fields before the range check, so clock scan "12:00:4294967301" now gives 12:00:05 instead of "invalid time". Hours and minutes already behave this way: "12:4294967301:00" gives 12:05:00. A range check in tclGetDate.y before the assignment would fix all three.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"