Commit e4fcfa3b authored by Robert Bradshaw's avatar Robert Bradshaw

Disable pylong optimizations on 32-bit.

This is a workaround for github hissue #1530.
parent af56048e
......@@ -606,6 +606,13 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
}
#endif
{{if op == 'Lshift'}}
// Work around Github #1530.
if (sizeof(long) < 8) {
return PyNumber_Lshift(op1, op2);
}
{{endif}}
#if CYTHON_USE_PYLONG_INTERNALS
if (likely(PyLong_CheckExact({{pyval}}))) {
const long {{'a' if order == 'CObj' else 'b'}} = intval;
......
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