Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Nov 14, 2024
1 parent e5a285c commit 97dd631
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,8 @@ const PyLongLayout PyLong_LAYOUT = {
.digit_size = sizeof(digit),
};

const PyLongLayout* PyLong_GetNativeLayout(void)
static inline const PyLongLayout*
PyLong_GetNativeLayout(void)
{
return &PyLong_LAYOUT;
}
Expand All @@ -1245,7 +1246,7 @@ static inline void
_PyLong_SetSignAndDigitCount(PyLongObject *op, int sign, Py_ssize_t size)
{
#if PY_VERSION_HEX >= 0x030C0000
op->long_value.lv_tag = ((1 - sign) | (size << 3));
op->long_value.lv_tag = (1 - sign) | (size << 3);
#elif PY_VERSION_HEX >= 0x030900A4
Py_SET_SIZE(op, sign*size);
#else
Expand Down

0 comments on commit 97dd631

Please sign in to comment.