Commit 9d73d054 authored by Stefan Behnel's avatar Stefan Behnel

remove unused code from utility function

--HG--
extra : transplant_source : %A5%88%3ES%0C%2B%5Bh%BC%83%8E%F3%E8%11%2A%0A%B4j%D5%29
parent 6bb3e582
......@@ -511,7 +511,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
x = (long)((unsigned long)a {{c_op}} b);
if (likely((x^a) >= 0 || (x^{{ '~' if op == 'Subtract' else '' }}b) >= 0))
return PyInt_FromLong(x);
return PyLong_Type.tp_as_number->nb_{{op.lower()}}(op1, op2);
{{else}}
{{if c_op == '%'}}
// modulus with differing signs isn't safely portable
......@@ -521,8 +521,6 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
// other operations are safe, no overflow
return PyInt_FromLong(a {{c_op}} b);
{{endif}}
return PyLong_Type.tp_as_number->nb_{{op.lower()}}(op1, op2);
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment