Skip to content

Commit

Permalink
Update Python/marshal.c
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey B Kirpichev <[email protected]>
  • Loading branch information
vstinner and skirpichev authored Jan 23, 2025
1 parent 9d95c35 commit 47eaacf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ _r_digits##bitsize(const uint ## bitsize ## _t *digits, Py_ssize_t n, \
Py_ssize_t l = (n - 1)*marshal_ratio; \
uint ## bitsize ## _t d = digits[n - 1]; \
\
assert(marshal_ratio > 0); \
assert(n >= 1); \
assert(d != 0); /* a PyLong is always normalized */ \
do { \
d >>= PyLong_MARSHAL_SHIFT; \
Expand Down

0 comments on commit 47eaacf

Please sign in to comment.