upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.

This commit is contained in:
Christian Heimes 2013-12-04 08:42:46 +01:00
parent 7a934fb48d
commit 724b828e79
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}