Skip to content

Commit 0d049a8

Browse files
committed
Fail on 15-bit PyLong digit builds
1 parent 8d7644f commit 0d049a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Include/cpython/longintrepr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef int64_t stwodigits; /* signed variant of twodigits */
5050
#define _PyLong_DECIMAL_SHIFT 9 /* max(e such that 10**e fits in a digit) */
5151
#define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
5252
#elif PYLONG_BITS_IN_DIGIT == 15
53+
#error "15-bit digits not supported"
5354
typedef unsigned short digit;
5455
typedef short sdigit; /* signed variant of digit */
5556
typedef unsigned long twodigits;

0 commit comments

Comments
 (0)