Skip to content

Commit

Permalink
pythongh-125207: Fix MSVC 1935 build with JIT (python#125209)
Browse files Browse the repository at this point in the history
* pythongh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length

Signed-off-by: Pablo Galindo <[email protected]>
  • Loading branch information
mdboom authored and pablogsal committed Oct 21, 2024
1 parent b3c6b2c commit 1e098e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
} \
_Py_DECREF_STAT_INC(); \
if (--op->ob_refcnt == 0) { \
struct _reftracer_runtime_state *tracer = &_PyRuntime.ref_tracer; \
if (tracer->tracer_func != NULL) { \
void* data = tracer->tracer_data; \
tracer->tracer_func(op, PyRefTracer_DESTROY, data); \
} \
destructor d = (destructor)(dealloc); \
d(op); \
} \
Expand Down

0 comments on commit 1e098e9

Please sign in to comment.