Ticket #36 (closed defect: fixed)
Bad code generation
| Reported by: | gfurnish | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | 0.9.8.1 |
| Component: | Optimization | Keywords: | |
| Cc: |
Description
147: x = <TypedSymbolicExpression>PyList_GET_ITEM(operands, i)
Py_INCREF(((PyObject *)((struct __pyx_obj_4sage_9symbolics_10expression_TypedSymbolicExpression *)PyList_GET_ITEM(__pyx_v_operands, __pyx_v_i))));
Py_DECREF(((PyObject *)__pyx_v_x));
__pyx_v_x = ((struct __pyx_obj_4sage_9symbolics_10expression_TypedSymbolicExpression *)PyList_GET_ITEM(__pyx_v_operands, __pyx_v_i));
This should use a temporary instead of calling the thing being casted twice.
Change History
Note: See
TracTickets for help on using
tickets.
