summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2019-07-10 16:24:01 -0500
committerGitHub <noreply@github.com>2019-07-10 16:24:01 -0500
commitb64c2c66e5cfe6d138b342ee58ee3b13a8d7ef16 (patch)
tree3a8ca8473e8c2e5ecc369db7821f1138b19503ce /Objects/obmalloc.c
parentbpo-37537: Compute allocated blocks in _Py_GetAllocatedBlocks() (#14680) (diff)
downloadcpython-b64c2c66e5cfe6d138b342ee58ee3b13a8d7ef16.tar.gz
cpython-b64c2c66e5cfe6d138b342ee58ee3b13a8d7ef16.tar.bz2
cpython-b64c2c66e5cfe6d138b342ee58ee3b13a8d7ef16.zip
Fix compiler warning in new code. (#14690)
uintptr_t is an integer type, and can't be compared to NULL directly.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index bb154c76ab1..2c00efc255d 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -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;
}