diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-07 09:26:18 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-07 09:26:18 -0700 |
commit | 2f8bfef1587b3e8f43c0ce7cd9546137c5b56782 (patch) | |
tree | 44becf9ee303c3cd1e8977fbda8cbbe42237258a /Python/compile.c | |
parent | c75abff53375bbd9f1536de4069854cea4933c42 (diff) | |
download | cpython-git-2f8bfef1587b3e8f43c0ce7cd9546137c5b56782.tar.gz |
replace PY_SIZE_MAX with SIZE_MAX
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6fe5d5fa82..45e4262b40 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -804,7 +804,7 @@ compiler_next_instr(struct compiler *c, basicblock *b) oldsize = b->b_ialloc * sizeof(struct instr); newsize = oldsize << 1; - if (oldsize > (PY_SIZE_MAX >> 1)) { + if (oldsize > (SIZE_MAX >> 1)) { PyErr_NoMemory(); return -1; } @@ -4520,7 +4520,7 @@ assemble_init(struct assembler *a, int nblocks, int firstlineno) a->a_lnotab = PyBytes_FromStringAndSize(NULL, DEFAULT_LNOTAB_SIZE); if (!a->a_lnotab) return 0; - if ((size_t)nblocks > PY_SIZE_MAX / sizeof(basicblock *)) { + if ((size_t)nblocks > SIZE_MAX / sizeof(basicblock *)) { PyErr_NoMemory(); return 0; } |