summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-04 08:42:46 +0100
committerChristian Heimes <christian@cheimes.de>2013-12-04 08:42:46 +0100
commit4b58a23d4fcf4cb6d96404c4db2f40fcab494efd (patch)
treecf13d80d7c9e6ddbfa3a63b51dd8939ab097327b /Python/compile.c
parent7595c9b174a4b0d93e19b00e92c29296f369fb2c (diff)
downloadcpython-4b58a23d4fcf4cb6d96404c4db2f40fcab494efd.tar.gz
upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 0fc91864ff..a7ddc5a11a 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3899,7 +3899,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 (nblocks > PY_SIZE_MAX / sizeof(basicblock *)) {
+ if ((size_t)nblocks > PY_SIZE_MAX / sizeof(basicblock *)) {
PyErr_NoMemory();
return 0;
}