summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 16:26:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-07 16:26:18 (GMT)
commit2f8bfef1587b3e8f43c0ce7cd9546137c5b56782 (patch)
tree44becf9ee303c3cd1e8977fbda8cbbe42237258a /Objects/longobject.c
parentc75abff53375bbd9f1536de4069854cea4933c42 (diff)
downloadcpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.zip
cpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.tar.gz
cpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.tar.bz2
replace PY_SIZE_MAX with SIZE_MAX
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 6eb40e4..740b7f5 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -721,7 +721,7 @@ _PyLong_NumBits(PyObject *vv)
assert(ndigits == 0 || v->ob_digit[ndigits - 1] != 0);
if (ndigits > 0) {
digit msd = v->ob_digit[ndigits - 1];
- if ((size_t)(ndigits - 1) > PY_SIZE_MAX / (size_t)PyLong_SHIFT)
+ if ((size_t)(ndigits - 1) > SIZE_MAX / (size_t)PyLong_SHIFT)
goto Overflow;
result = (size_t)(ndigits - 1) * (size_t)PyLong_SHIFT;
do {