Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a87927d68643fa1ced23638f59362fab3601e761
Ticket: 1340260fffffffffffffffffffffffffffffffff
Simplify round() implementation in expr cmd
User & Date: dgp on 2005-11-01 22:18:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Here's a test case:
    
    test expr-46.13 {round() handling of long/bignum boundary} {
        expr {round(double(0x7fffffffffffffff))}
    } 9223372036854775808
    
    With the contributed patch, on L64 systems:
    
    ==== expr-46.13 round() handling of long/bignum boundary FAILED
    ==== Contents of test case:
    
        expr {round(double(0x7fffffffffffffff))}
    
    ---- Result was:
    -9223372036854775808
    ---- Result should have been (exact matching):
    9223372036854775808
    ==== expr-46.13 FAILED
    
    On the HEAD, the test passes.
    
    Committing that to the test suite...
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. resolution changed to: "Rejected"
  5. status changed to: "Closed"
  6. username: "dgp"