Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9609e019c6b0dc4280d1d9c4b00a19a6cf540599
Ticket: 690774ffffffffffffffffffffffffffffffffff
[binary scan] fails with certain 64-bit ints
User & Date: kennykb on 2003-02-21 17:26:41
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If a 'w' format group on [binary scan] gets a 64-bit integer with the 2**31 bit set, it returns incorrect 
    results.
    
    % binary scan [binary format w [expr { wide(3) << 31 }]] w x
    1
    % set x
    -2147483648
    
    % parray tcl_platform
    tcl_platform(byteOrder) = littleEndian
    tcl_platform(machine)   = intel
    tcl_platform(os)        = Windows NT
    tcl_platform(osVersion) = 5.0
    tcl_platform(platform)  = windows
    tcl_platform(user)      = kennykb
    tcl_platform(wordSize)  = 4
    % set tcl_patchLevel
    8.4.1
    
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "12. ByteArray Object"
  10. title changed to: "[binary scan] fails with certain 64-bit ints"
  11. type changed to: "Bug"