Skip to content

Commit

Permalink
Fix #1317: Support Python 3.12 (typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
Triton Library committed May 20, 2024
1 parent d87e756 commit 98de7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libtriton/bindings/python/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
#define tt_GET_OB_DIGIT(obj) obj->ob_digit
#define tt_SET_OB_DIGIT(obj, n) Py_SET_SIZE(obj, n)
#define tt_PyLong_IsNegative(obj) (Py_SIZE(obj) < 0)
#define tt_PyLong_DigitCount(obj) (_PyLong_IsNegative(obj) ? -Py_SIZE(obj) : Py_SIZE(obj))
#define tt_PyLong_DigitCount(obj) (tt_PyLong_IsNegative(obj) ? -Py_SIZE(obj) : Py_SIZE(obj))

#else

#define tt_GET_OB_DIGIT(obj) obj->ob_digit
#define tt_SET_OB_DIGIT(obj, n) Py_SIZE(obj) = n
#define tt_PyLong_IsNegative(obj) (Py_SIZE(obj) < 0)
#define tt_PyLong_DigitCount(obj) (_PyLong_IsNegative(obj) ? -Py_SIZE(obj) : Py_SIZE(obj))
#define tt_PyLong_DigitCount(obj) (tt_PyLong_IsNegative(obj) ? -Py_SIZE(obj) : Py_SIZE(obj))

#endif

Expand Down

0 comments on commit 98de7d8

Please sign in to comment.