diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-07 16:26:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-07 16:26:18 (GMT) |
commit | 2f8bfef1587b3e8f43c0ce7cd9546137c5b56782 (patch) | |
tree | 44becf9ee303c3cd1e8977fbda8cbbe42237258a /Parser/node.c | |
parent | c75abff53375bbd9f1536de4069854cea4933c42 (diff) | |
download | cpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.zip cpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.tar.gz cpython-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.tar.bz2 |
replace PY_SIZE_MAX with SIZE_MAX
Diffstat (limited to 'Parser/node.c')
-rw-r--r-- | Parser/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/node.c b/Parser/node.c index 0010324..240d290 100644 --- a/Parser/node.c +++ b/Parser/node.c @@ -91,7 +91,7 @@ PyNode_AddChild(node *n1, int type, char *str, int lineno, int col_offset) if (current_capacity < 0 || required_capacity < 0) return E_OVERFLOW; if (current_capacity < required_capacity) { - if ((size_t)required_capacity > PY_SIZE_MAX / sizeof(node)) { + if ((size_t)required_capacity > SIZE_MAX / sizeof(node)) { return E_NOMEM; } n = n1->n_child; |