Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 22c107e458cf0734a8e5bcf1bb90b5dd8d2f385c
Ticket: 1841549fffffffffffffffffffffffffffffffff
Compatibility issues about 32-bit integers and wide integers
User & Date: dgp on 2007-12-04 00:34:37
Changes

  1. closedate changed to: "2007-12-03T17:34:37"
  2. closer changed to: "dgp"
  3. icomment:
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    This is not a bug, but an intentional change
    in the 8.3 -> 8.4 migration to provide
    limited support for 64-bit integers.
    Tcl 8.4 was first released in 2002.  It's
    well past time to adapt your scripts.
    
    This modification to your script will run
    the same in all Tcl releases; 8.3, 8.4, and
    8.5:
    
    set var1 "-2147483647"
    if { $var1 == int(0x80000001) } {
    set res "ok";
    } else {
    set res "nok";
    }
    
    
  4. login: "dgp"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "dgp"