Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6ace64a4d9fdd242b50460039ffea1d328def221
Ticket: 219223ffffffffffffffffffffffffffffffffff
64 bit format command behaves differently to the 32bit forma
User & Date: dgp on 2002-02-16 05:03:48
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    No.  There are still problems here.
    
    As noted before, we need documentation so folks are not
    surprised by this:
    
    % format %d 4294967290
    -6
    
    Make it explicit that signed 32-bit values are used
    unless the 'l' modifier is added:
    
    % format %ld 4294967290
    4294967290
    
    Also in format.n, point [3] of the last section says that
    the 'l' modifier is ignored.  That is clearly no longer
    true.
    
    Getting to the actual bug, on a 64-bit Linux-Alpha:
    
    % format %d 4294967290
    -6
    % format %ld 4294967290
    -6
    
    so things are not consistent.  I think the intent of
    TIP 72 was that there be consistent results on 32- and
    64-bit platforms. 
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. resolution changed to: "Remind"
  5. status changed to: "Open"
  6. username: "dgp"