FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix compiler warning in new code. (#14690) · python-emscripten/cpython@b64c2c6 · GitHub

Repository navigation

Commit b64c2c6

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL