Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5de8b3151b9efaa0a680871a133a48e07b35174f0238bdc64b5406962e142c6f
Ticket: 76ad7aeba3e7049e392079c1aea8044d73c0ef17
boundary case bug in [string is integer]
User & Date: mistachkin on 2022-05-20 17:43:52
Changes

  1. comment changed to:
    The following script shows a bug in the [string is integer] sub-command:
    
      set class integer
      set value 18446744073709551615
      string is $class $value; # should be 0
    
    The result was "1" (incorrect) using the following check-ins running on
    the Linux x86_64 platform:
    
      core-8-6-branch - e7da3f4504cd9db6e28fd4ed73dae542ab7c91f4
      core-8-branch - eaf93525a5d4bd519dfd68add09a3586ca0c1831
    
    Also, compare and contrast with the result of the following command:
    
      string is integer 18446744073709551615; # should be 0
    
    This seems to imply that the bug involves the compiler (or lack thereof?).
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"