Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a009912bdfd37c027be6be60faf2f89c1d81122
Ticket: 765156ffffffffffffffffffffffffffffffffff
wrong return value from [binary scan] with 64-bit values
User & Date: nobody on 2003-07-03 07:36:51
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    the system:
    ::tcl_platform(byteOrder) = littleEndian
    ::tcl_platform(machine)   = intel
    ::tcl_platform(os)        = Windows NT
    ::tcl_platform(osVersion) = 4.0
    ::tcl_platform(platform)  = windows
    ::tcl_platform(wordSize)  = 4
    
    ::tcl_patchLevel = 8.4.1
    
    
    
    binary scan [binary format w [expr wide 
    (0xA0A0A0A080000000)]] w value
    1
    (Desktop) 74 % format %lx [expr wide ($value)]
    ffffffff80000000
    
    
    correct example:
    binary scan [binary format w [expr wide 
    (0xA0A0A0A07FFFFFFF)]] w value
    1
    (Desktop) 70 % format %lx [expr wide ($value)]
    a0a0a0a07fffffff
    
    
    
    Description:
    The binary scan command apparently interpretes the 
    MSW of the 64-bit binary string as 0xFFFFFFFF if the 
    LSW is greater than 0x80000000.
    
    
    
  4. foundin changed to: "None"
  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: "16. Commands A-H"
  10. title changed to:
    wrong return value from [binary scan] with 64-bit values
    
  11. type changed to: "Patch"