summaryrefslogtreecommitdiff
path: root/Lib/test/test_genericclass.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-12-15 23:42:33 -0800
committerGitHub <noreply@github.com>2017-12-15 23:42:33 -0800
commit0c644fcda095b12eedfb417f15429795c09196b6 (patch)
tree5d1230628200ffa2c524269da9bc6781493a11c1 /Lib/test/test_genericclass.py
parent9454060e84a669dde63824d9e2fcaf295e34f687 (diff)
downloadcpython-git-0c644fcda095b12eedfb417f15429795c09196b6.tar.gz
fix up signedness in PyImport_ExtendInittab (#4831)
As a result of 92a3c6f493ad411e4cf0acdf305ef4876aa90669, the compiler complains: Python/import.c:2311:21: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare] if ((i + n + 1) <= PY_SSIZE_T_MAX / sizeof(struct _inittab)) { ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This overflow is extremely unlikely to happen, but let's avoid undefined behavior anyway.
Diffstat (limited to 'Lib/test/test_genericclass.py')
0 files changed, 0 insertions, 0 deletions