Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cfef2437df1b459f5584c173d2cfff1c01133b3f
Ticket: 520690ffffffffffffffffffffffffffffffffff
64-bit: [incr] and [expr +] disagree
User & Date: dgp on 2002-02-20 22:29:30
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    On Linux/Alpha, in tclsh8.4a4:
    
    % set var [expr 1<<30]
    1073741824
    % set value [expr 1<<30]
    1073741824
    % expr {$var + $value}
    2147483648
    % incr var $value
    -2147483648 
    
    % proc test {} {
        set var [expr 1<<30]
        set value [expr 1<<30]
        puts [expr {$var + $value}]
        incr var $value
        puts $var
    }
    % test
    2147483648
    -2147483648
    
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "17. Commands I-L"
  10. title changed to: "64-bit: [incr] and [expr +] disagree"
  11. type changed to: "Bug"