Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f46b77c6479367e83fef4e8df8ee41e72c615aba
Ticket: 1341368fffffffffffffffffffffffffffffffff
expr-46.13-18 fail on 64-bit systems
User & Date: dgp on 2005-10-29 06:43:44
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    ==== expr-46.13 round() boundary case - largest int FAILED
    ==== Contents of test case:
    
        set imax [expr {((1<<31) + 1) * -1}]
        expr {round($imax - 0.51)}
    
    ---- Result was:
    -2147483650
    ---- Result should have been (exact matching):
    2147483646
    ==== expr-46.13 FAILED
    
    
    ==== expr-46.14 round() boundary case - largest int FAILED
    ==== Contents of test case:
    
        set imax [expr {((1<<31) + 1) * -1}]
        expr {round($imax - 0.50)}
    
    ---- Result was:
    -2147483650
    ---- Result should have been (exact matching):
    2147483647
    ==== expr-46.14 FAILED
    
    ==== expr-46.15 round() boundary case - becomes wide
    int FAILED
    ==== Contents of test case:
    
        set imax [expr {((1<<31) + 1) * -1}]
        expr {round($imax + 0.50)}
    
    ---- Result was:
    -2147483649
    ---- Result should have been (exact matching):
    2147483648
    ==== expr-46.15 FAILED
    
    
    ==== expr-46.16 round() boundary case - smallest int FAILED
    ==== Contents of test case:
    
        set imin [expr {1<<31}]
        expr {round($imin + 0.51)}
    
    ---- Result was:
    2147483649
    ---- Result should have been (exact matching):
    -2147483647
    ==== expr-46.16 FAILED
    
    ==== expr-46.17 round() boundary case - smallest int FAILED
    ==== Contents of test case:
    
        set imin [expr {1<<31}]
        expr {round($imin + 0.50)}
    
    ---- Result was:
    2147483649
    ---- Result should have been (exact matching):
    -2147483648
    ==== expr-46.17 FAILED
    
    
    ==== expr-46.18 round() boundary case - becomes wide
    int FAILED
    ==== Contents of test case:
    
        set imin [expr {1<<31}]
        expr {round($imin - 0.50)}
    
    ---- Result was:
    2147483648
    ---- Result should have been (exact matching):
    -2147483649
    ==== expr-46.18 FAILED
    
    
    
    
    Perhaps it's just missing test constraints;
    the tests appear suitable only for systems
    on which the C long type is 32-bit.
    
    Still the point of the tests elude me.
    Just more stuff that's changing in 8.5,
    right?  If we haven't tested it before,
    why start now?
    
    
    
  4. foundin changed to: "obsolete: 8.4.11"
  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: "45. Parsing and Eval"
  10. title changed to: "expr-46.13-18 fail on 64-bit systems"
  11. type changed to: "Bug"