diff options
author | Mark Shannon <mark@hotpy.org> | 2021-10-28 16:35:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 16:35:43 (GMT) |
commit | 4fc68560ea0d506c152a82c48c162bfe002f34a8 (patch) | |
tree | 025efe26309526cdb86521c1f8f95ad106ff939f /Python/pylifecycle.c | |
parent | 13d9205f4057eeeef80a25d410ad123876dc60cd (diff) | |
download | cpython-4fc68560ea0d506c152a82c48c162bfe002f34a8.zip cpython-4fc68560ea0d506c152a82c48c162bfe002f34a8.tar.gz cpython-4fc68560ea0d506c152a82c48c162bfe002f34a8.tar.bz2 |
Store actual ints, not pointers to them in the interpreter state. (GH-29274)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 3ccf32a..7e6060e 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -659,9 +659,7 @@ pycore_init_singletons(PyInterpreterState *interp) { PyStatus status; - if (_PyLong_Init(interp) < 0) { - return _PyStatus_ERR("can't init longs"); - } + _PyLong_Init(interp); if (_Py_IsMainInterpreter(interp)) { _PyFloat_Init(); |