Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 27ec0c714c70df02176a82d0a2442569873dfb6b
Ticket: 218220ffffffffffffffffffffffffffffffffff
expr doesn't always "do the right thing" with signed vs. uns
User & Date: nobody on 2000-10-26 00:54:39
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2584 Bug
    Version: 8.2
    SubmitDate: '1999-08-20'
    LastModified: '2000-04-03'
    Severity: LOW
    Status: Closed
    Submitter: hobbs
    ChangedBy: hobbs
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-03'
    
    
    In the following:
    
    (tkcon) 49 % expr 2147483647
    2147483647
    (tkcon) 50 % expr 2147483648
    -2147483648
    (tkcon) 51 % expr 2147483649
    -2147483647
    
    We are getting "undesirable" results.  Should check and see
    what a true 64 bit OS does.
    
    This may be "undesirable", but it is expected on 32bit int systems.
    64bit systems will just wrap at a much larger value.  It was discussed
    at an earlier point whether Tcl should wrap or complain instead, and
    it was decided that wrapping is "better" (after all, that's what C
    does too). 
    -- 04/03/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    expr doesn't always "do the right thing" with signed vs. uns
    
  11. type changed to: "RFE"