https://github.com/python/cpython/commit/2ef37285c1f1332c4f61ea52c9fb1870caa53b9e
commit: 2ef37285c1f1332c4f61ea52c9fb1870caa53b9e
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-11-02T15:29:11Z
summary:
gh-161187: Fix unused variable compiler warning in `marshal.c` (#161188)
gh-161187: Fix unsued variable compiler warning in `marshal.c`
files:
M Python/marshal.c
diff --git a/Python/marshal.c b/Python/marshal.c
index 2f3112e1644330..d4a63361148b43 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -737,9 +737,10 @@ w_tie_set_items(w_set_item *items, Py_ssize_t count,
size_t first, WFILE *p)
remembered it, and it cannot be written again. */
continue;
}
- uintptr_t w = (uintptr_t)entry->value;
- assert(!(w & (W_ENTRY_ACTIVE | W_ENTRY_TIED)));
- assert((w >> W_ENTRY_SHIFT) - first < (size_t)count);
+ assert(!((uintptr_t)entry->value & (W_ENTRY_ACTIVE | W_ENTRY_TIED)));
+ assert(
+ ((uintptr_t)entry->value >> W_ENTRY_SHIFT) - first < (size_t)count
+ );
entry->value = (void *)value;
}
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]