From 55cdc9f0e421973df040c83032d1133bc86bd978 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 17 May 2018 06:20:14 +0200 Subject: Update comment after changing code. --- Cython/Utility/Optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cython/Utility') diff --git a/Cython/Utility/Optimize.c b/Cython/Utility/Optimize.c index 502e7badc..2fc2fd67e 100644 --- a/Cython/Utility/Optimize.c +++ b/Cython/Utility/Optimize.c @@ -760,7 +760,7 @@ static CYTHON_INLINE {{c_ret_type}} __Pyx_PyInt_{{'' if ret_type.is_pyobject els {{for _size in range(4, 0, -1)}} #if PyLong_SHIFT * {{_size}} < SIZEOF_LONG*8 if (uintval >> (PyLong_SHIFT * {{_size}})) { - // C integer value is between the maximum multiple digits that fit into a long completely and the maximum long value + // The C integer value is between (PyLong_BASE ** _size) and MIN(PyLong_BASE ** _size, LONG_MAX). unequal = (size != {{_size+1}}) || (digits[0] != (uintval & (unsigned long) PyLong_MASK)) {{for _i in range(1, _size+1)}} | (digits[{{_i}}] != ((uintval >> ({{_i}} * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)){{endfor}}; } else -- cgit v1.2.1