Skip to content

Commit 196d4de

Browse files
bpo-42882: Fix MSVC warnings in pystate.c (GH-24440)
_PyRuntimeState.unicode_ids.next_index type is Py_ssize_t.
1 parent 28873a7 commit 196d4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Python/pystate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _PyRuntimeState_Init_impl(_PyRuntimeState *runtime)
5656
_Py_AuditHookEntry *audit_hook_head = runtime->audit_hook_head;
5757
// bpo-42882: Preserve next_index value if Py_Initialize()/Py_Finalize()
5858
// is called multiple times.
59-
int64_t unicode_next_index = runtime->unicode_ids.next_index;
59+
Py_ssize_t unicode_next_index = runtime->unicode_ids.next_index;
6060

6161
memset(runtime, 0, sizeof(*runtime));
6262

0 commit comments

Comments
 (0)