summaryrefslogtreecommitdiff
path: root/Cython/Utility
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-05-17 06:20:14 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-05-17 06:20:14 +0200
commit55cdc9f0e421973df040c83032d1133bc86bd978 (patch)
tree5ee7397f5311d2fcf48b9b25333f604e8aa95d9c /Cython/Utility
parentf1e85cafa2a8584d1568ab39678a34a70035ed7b (diff)
downloadcython-55cdc9f0e421973df040c83032d1133bc86bd978.tar.gz
Update comment after changing code.
Diffstat (limited to 'Cython/Utility')
-rw-r--r--Cython/Utility/Optimize.c2
1 files changed, 1 insertions, 1 deletions
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