Commit b64c2c66 authored by Tim Peters's avatar Tim Peters Committed by GitHub

Fix compiler warning in new code. (#14690)

uintptr_t is an integer type, and can't be compared to NULL directly.
parent 5d25f2b7
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment