From 736c24af927c403d2625f15bce596bdd9c2bc561 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 2 Nov 2026 17:52:22 +0300 Subject: [PATCH] gh-161187: Fix unsued variable compiler warning in `marshal.c` --- Python/marshal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } }