From 4a7ec014a36f7d098eb3fa9cc95b60edc2e7ea30 Mon Sep 17 00:00:00 2001 From: Stefan Behnel <stefan_ml@behnel.de> Date: Thu, 2 Apr 2015 21:15:59 +0200 Subject: [PATCH] let's assume PY_LONG_LONG isn't going to hold substantially more bits than 4*PyLong_SHIFT on any well configured system --- Cython/Utility/Optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Utility/Optimize.c b/Cython/Utility/Optimize.c index ec24f0fc5..c91cdf36c 100644 --- a/Cython/Utility/Optimize.c +++ b/Cython/Utility/Optimize.c @@ -585,7 +585,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO if (size == -1) {{ival}} = -{{ival}}; } else { switch (size) { - {{for _size in range(2, 9)}} + {{for _size in range(2, 5)}} {{for _case in (-_size, _size)}} case {{_case}}: if (8 * sizeof(long) - 1 > {{_size}} * PyLong_SHIFT{{if op == 'TrueDivide'}} && {{_size-1}} * PyLong_SHIFT < 53{{endif}}) { -- 2.30.9