Overview
| Artifact ID: | b3eb3573c04a1d0344f16d83e4fecae9c167e83c |
|---|---|
| Ticket: | 1229765fffffffffffffffffffffffffffffffff
expr: ambiguous LONG_MIN parse |
| User & Date: | dgp on 2005-06-29 22:47:24 |
Changes
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Issue appears to be a parsing ambiguity when the literal LONG_MIN value appears in an expression. expr {-0x80000000} The string "-0x80000000" is recognized by Tcl as a non-wide integer: % string is integer -0x80000000 1 However, the **expression** "-0x80000000" gets parsed into unary operator "-" followed by literal value "0x80000000" and the result becomes a wide integer. Same issue, just less obvious, with the expression -2147483648 . Did I get that right? With true EIAS numbers (where we're headed?) this will no longer matter (right?), but since currently wide vs. non-wide changes computations, I can see that this is an issue in need of resolution. kennykb, any comments from the numerics reform leader? - login: "dgp"
- mimetype: "text/plain"
- title changed to: "expr: ambiguous LONG_MIN parse"
- username: "dgp"