Fix compiler warning in new code. (#14690)

uintptr_t is an integer type, and can't be compared to NULL directly.
This commit is contained in:
Tim Peters 2019-07-10 16:24:01 -05:00 committed by GitHub
parent 5d25f2b703
commit b64c2c66e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ _Py_GetAllocatedBlocks(void)
/* add up allocated blocks for used pools */
for (uint i = 0; i < maxarenas; ++i) {
/* Skip arenas which are not allocated. */
if (arenas[i].address == NULL) {
if (arenas[i].address == 0) {
continue;
}