|
2002-07-10
| ||
| 15:26 | • Closed ticket [579284ffff]: expr fails with wide int objects plus 3 other ch... artifact: f967ab6390 user: dkf | |
| 04:03 | • Ticket [579284ffff]: 5 changes artifact: 51a1c3a100 user: dkf | |
| 03:25 | • Ticket [579284ffff]: 5 changes artifact: b1ca16d871 user: hobbs | |
|
2002-07-09
| ||
| 20:14 | • New ticket [579284ffff]. artifact: 0c394e9f87 user: dacut | |
expr fails with wide int objects
Closed / Fixed579284ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-09 20:14:29
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.
hobbsplain2002-07-10 03:25:36
Logged In: YES user_id=72656 I believe dkf is the right person for this report.
dkfplain2002-07-10 04:03:23
Logged In: YES user_id=79902 Oops! D'oh! (Fix tomorrow morning...)
dkf Closed ticket [579284ffff].
[History diff]2002-07-10 15:26:23
Log in (anonymous is fine) to add a comment.