Skip to content

Commit

Permalink
Add missing cast in pylifecycle.c
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jun 19, 2023
1 parent a8544c3 commit 6b23e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ init_interp_main(PyThreadState *tstate)

if (is_main_interp) {
PyObject *opt = PyUnstable_Optimizer_NewUOpOptimizer();
PyUnstable_SetOptimizer(opt);
PyUnstable_SetOptimizer((_PyOptimizerObject *)opt);
}

assert(!_PyErr_Occurred(tstate));
Expand Down

0 comments on commit 6b23e0f

Please sign in to comment.