summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime_init.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-01-30 10:03:04 (GMT)
committerGitHub <noreply@github.com>2023-01-30 10:03:04 (GMT)
commitc1b1f51cd1632f0b77dacd43092fb44ed5e053a9 (patch)
treeda815b0f6e2daddbb013ce2383837c61b3675201 /Include/internal/pycore_runtime_init.h
parentf5a3d91b6c56ddff4644b5a5ac34d8c6d23d7c79 (diff)
downloadcpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.zip
cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.tar.gz
cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.tar.bz2
GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292)
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r--Include/internal/pycore_runtime_init.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index f10dccc..c6a27d0 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -149,9 +149,11 @@ extern "C" {
#define _PyLong_DIGIT_INIT(val) \
{ \
- _PyVarObject_IMMORTAL_INIT(&PyLong_Type, \
- ((val) == 0 ? 0 : ((val) > 0 ? 1 : -1))), \
- .ob_digit = { ((val) >= 0 ? (val) : -(val)) }, \
+ .ob_base = _PyObject_IMMORTAL_INIT(&PyLong_Type), \
+ .long_value = { \
+ ((val) == 0 ? 0 : ((val) > 0 ? 1 : -1)), \
+ { ((val) >= 0 ? (val) : -(val)) }, \
+ } \
}
#define _PyBytes_SIMPLE_INIT(CH, LEN) \