Skip to content

Commit 8cf9dfa

Browse files
committed
gh-151515: Fix incorrect function pointer cast in asdl_c.py generator
1 parent 8646385 commit 8cf9dfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ def generate_module_def(mod, metadata, f, internal_h):
22742274
PyInterpreterState *interp = _PyInterpreterState_GET();
22752275
struct ast_state *state = &interp->ast;
22762276
assert(!state->finalized);
2277-
if (_PyOnceFlag_CallOnce(&state->once, (_Py_once_fn_t *)&init_types, state) < 0) {
2277+
if (_PyOnceFlag_CallOnce(&state->once, &init_types, state) < 0) {
22782278
return NULL;
22792279
}
22802280
return state;

0 commit comments

Comments
 (0)