8000 Fix compiler warning in new code. (#14690) · python/cpython@b64c2c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b64c2c6

Browse files
authored
Fix compiler warning in new code. (#14690)
uintptr_t is an integer type, and can't be compared to NULL directly.
1 parent 5d25f2b commit b64c2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ _Py_GetAllocatedBlocks(void)
12151215
/* add up allocated blocks for used pools */
12161216
for (uint i = 0; i < maxarenas; ++i) {
12171217
/* Skip arenas which are not allocated. */
1218-
if (arenas[i].address == NULL) {
1218+
if (arenas[i].address == 0) {
12191219
continue;
12201220
}
12211221

0 commit comments

Comments
 (0)
0