Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0c394e9f876dc3c23bc4eb63de2396899fb6272c
Ticket: 579284ffffffffffffffffffffffffffffffffff
expr fails with wide int objects
User & Date: dacut on 2002-07-09 20:14:29
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "obsolete: 8.4b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dacut"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "expr fails with wide int objects"
  11. type changed to: "Bug"