diff options
author | Michael Droettboom <mdboom@gmail.com> | 2024-10-18 19:51:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 19:51:29 (GMT) |
commit | c8fd4b12e3db49d795de55f74d9bac445c059f1b (patch) | |
tree | 8cce43f4ce952c02b3bb64da89e62905823e604b /Python | |
parent | f8ba9fb2ce6690d2dd05b356583e8e4790badad7 (diff) | |
download | cpython-c8fd4b12e3db49d795de55f74d9bac445c059f1b.zip cpython-c8fd4b12e3db49d795de55f74d9bac445c059f1b.tar.gz cpython-c8fd4b12e3db49d795de55f74d9bac445c059f1b.tar.bz2 |
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
Diffstat (limited to 'Python')
-rw-r--r-- | Python/jit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/jit.c b/Python/jit.c index 234fc7d..963bde2 100644 --- a/Python/jit.c +++ b/Python/jit.c @@ -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; |