gh-125207: Fix MSVC 1935 build with JIT (#125209)

* gh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length
This commit is contained in:
Michael Droettboom 2024-10-18 15:51:29 -04:00 committed by GitHub
parent f8ba9fb2ce
commit c8fd4b12e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -469,7 +469,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
// Loop once to find the total compiled size:
size_t code_size = 0;
size_t data_size = 0;
jit_state state = {};
jit_state state = {0};
group = &trampoline;
code_size += group->code_size;
data_size += group->data_size;