From 4b58a23d4fcf4cb6d96404c4db2f40fcab494efd Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 4 Dec 2013 08:42:46 +0100 Subject: upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang. --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') 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; } -- cgit v1.2.1