Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2d41f7af1e8258f88e613e382dec2d6414fe400ff929f4649bf499a63b0d9547
Ticket: 0ee626dfb24ee37f6ef1e4955b114ff09ea350f3
lseq numeric overflow
User & Date: apnadkarni on 2025-06-08 11:25:05
Changes

  1. icomment:
    Along the same lines (I think same root cause),
    
    ```
    % lseq 0x7fffffffffffffff count 3 by -0x7fffffffffffffff
    9223372036854775807 0 -9223372036854775807
    % lseq 0x7fffffffffffffff count 3 by -0x8000000000000000
    9223372036854775807 -1 9223372036854775807
    ```
    
    The first line above is correct, the second is not.
    
    Proposed fix on branch [bug-0ee626dfb2].
    
    Also, not related but recording as a reminder to be fixed.
    
    ```
    % catch {lseq -0x7f .. 0x7f count 2} message
    1
    % set message
    % set errorCode
    NONE
    ```
    
    Above correctly generates a (syntax) error but with an empty error message.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"