Overview
| Artifact ID: | 0c394e9f876dc3c23bc4eb63de2396899fb6272c |
|---|---|
| Ticket: | 579284ffffffffffffffffffffffffffffffffff
expr fails with wide int objects |
| User & Date: | dacut on 2002-07-09 20:14:29 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
When defining a new math function with Tcl_CreateMathFunc(), expr will pass wide integers into the function but refuses to handle them as results. The problem is in ExprCallMathFunc: /* * Push the call's object result. */ if (funcResult.type == TCL_INT) { PUSH_OBJECT(Tcl_NewLongObj(funcResult.intValue)); } else { d = funcResult.doubleValue; if (IS_NAN(d) || IS_INF(d)) { TclExprFloatError(interp, d); result = TCL_ERROR; goto done; } PUSH_OBJECT(Tcl_NewDoubleObj(d)); } Obviously not handling TCL_WIDE_INT objects here. - foundin changed to: "obsolete: 8.4b1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dacut"
- subsystem changed to: "10. Objects"
- title changed to: "expr fails with wide int objects"
- type changed to: "Bug"