mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-42882: Fix MSVC warnings in pystate.c (GH-24440)
_PyRuntimeState.unicode_ids.next_index type is Py_ssize_t.
This commit is contained in:
@@ -56,7 +56,7 @@ _PyRuntimeState_Init_impl(_PyRuntimeState *runtime)
|
||||
_Py_AuditHookEntry *audit_hook_head = runtime->audit_hook_head;
|
||||
// bpo-42882: Preserve next_index value if Py_Initialize()/Py_Finalize()
|
||||
// is called multiple times.
|
||||
int64_t unicode_next_index = runtime->unicode_ids.next_index;
|
||||
Py_ssize_t unicode_next_index = runtime->unicode_ids.next_index;
|
||||
|
||||
memset(runtime, 0, sizeof(*runtime));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user