Skip to content

Commit 2ef3728

Browse files
authored
gh-161187: Fix unused variable compiler warning in marshal.c (#161188)
gh-161187: Fix unsued variable compiler warning in `marshal.c`
1 parent 313dfd8 commit 2ef3728

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Python/marshal.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,10 @@ w_tie_set_items(w_set_item *items, Py_ssize_t count, size_t first, WFILE *p)
737737
remembered it, and it cannot be written again. */
738738
continue;
739739
}
740-
uintptr_t w = (uintptr_t)entry->value;
741-
assert(!(w & (W_ENTRY_ACTIVE | W_ENTRY_TIED)));
742-
assert((w >> W_ENTRY_SHIFT) - first < (size_t)count);
740+
assert(!((uintptr_t)entry->value & (W_ENTRY_ACTIVE | W_ENTRY_TIED)));
741+
assert(
742+
((uintptr_t)entry->value >> W_ENTRY_SHIFT) - first < (size_t)count
743+
);
743744
entry->value = (void *)value;
744745
}
745746
}

0 commit comments

Comments
 (0)