From: SourceForge.net <no...@so...> - 2003-12-31 16:09:55
|
Bugs item #868489, was opened at 2003-12-31 11:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=868489&group_id=10894 Category: 44. Parsing and Eval Group: current: 8.4.5 Status: Open Resolution: None Priority: 5 Submitted By: Kevin B KENNY (kennykb) Assigned to: miguel sofer (msofer) Summary: Incorrect promotion of int to wide Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=868489&group_id=10894 |