mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00: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:
parent
28873a7050
commit
196d4deaf4
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue