Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: acc0e46e7401a8e510c0e0c1c7f006675d8b9760
Ticket: 868489ffffffffffffffffffffffffffffffffff
Incorrect promotion of int to wide
User & Date: kennykb on 2003-12-31 16:09:54
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Consider the following:
    
    set x -2366755200
    string is integer $x
    set y [expr { wide($x) }]
    
    The value of y that results is 1928212096
    
    The problem is that the generated code for
    the expression sees the "integer" internal
    representation and uses it, even though
    reconverting the string rep would yield a
    different value.  The particular code in
    question is in the "ExprCallMathFunc"
    function in tclExecute.c, but the problem
    appears to be pretty pervasive.
    
    It appears to be incorrect to promote an
    "integer" to a "wide" if the "integer" has a
    string representation.
    
  4. foundin changed to: "obsolete: 8.4.5"
  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: "45. Parsing and Eval"
  10. title changed to: "Incorrect promotion of int to wide"
  11. type changed to: "Support"