Overview
| Artifact ID: | acc0e46e7401a8e510c0e0c1c7f006675d8b9760 |
|---|---|
| Ticket: | 868489ffffffffffffffffffffffffffffffffff
Incorrect promotion of int to wide |
| User & Date: | kennykb on 2003-12-31 16:09:54 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.4.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kennykb"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "Incorrect promotion of int to wide"
- type changed to: "Support"