Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4cf3e1a79330d75a2dc382ee914adaf9eeeab086
Ticket: 1230346fffffffffffffffffffffffffffffffff
Another [string is integer] inconsistency
User & Date: matzek on 2005-06-30 13:19:20
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Maybe related to bug [ 718878 ].
    
    On a 32bit Linux system using Tcl 8.4.9:
    
    % set foo 4294967295
    4294967295
    % string is integer $foo
    1
    
    % set foo 4294967296
    4294967296
    % string is integer $foo
    0
    
    % set foo 2147483648
    2147483648
    % string is integer $foo
    1
    
    % set foo 2147483647
    2147483647
    % string is integer $foo
    1
    
    On a 64bit Solaris 5.8 system using a 64bit Tcl 8.4.9:
    
    % set foo 4294967295
    4294967295
    % string is integer $foo
    0
    
    % set foo 4294967296    
    4294967296
    % string is integer $foo
    0
    
    % set foo 2147483648
    2147483648
    % string is integer $foo
    0
    
    % set foo 2147483647
    2147483647
    % string is integer $foo
    1
    
    So there are different results in the range from
    2147483648 (1<<31) up to (and including) 4294967295
    ((1<<32)-1).
    
    -- Matthias Kraft
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "matzek"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "Another [string is integer] inconsistency"
  11. type changed to: "Bug"