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:
parent
5d25f2b703
commit
b64c2c66e5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue