diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-04 07:42:46 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-04 07:42:46 (GMT) |
commit | 724b828e7941ab801769a09b1d494cc4d9ffda3b (patch) | |
tree | c5e51aec72ad1adb988bc27d86eff27da931e968 /Python | |
parent | 7a934fb48da03e21a12482d6b3f8bc3835c77b27 (diff) | |
download | cpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.zip cpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.tar.gz cpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.tar.bz2 |
upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 0fc9186..a7ddc5a 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; } |