Skip to content

Commit

Permalink
Fix PyObject pointer cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jojolebarjos committed Feb 11, 2024
1 parent d0406dc commit 54c3df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct Game {
new (&action->value) Action(actions[i]);
action->state = self;
Py_INCREF(self);
PyTuple_SET_ITEM(tuple, i, action);
PyTuple_SET_ITEM(tuple, i, (PyObject*)action);
}
}
return tuple;
Expand Down

0 comments on commit 54c3df3

Please sign in to comment.