Skip to content

Commit

Permalink
Fix pointer casts in non-permissive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jojolebarjos committed Feb 11, 2024
1 parent 1c51bac commit d0406dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@ struct Game {
};

static PyType_Slot State_slots[] = {
{Py_tp_dealloc, (destructor)State_dealloc},
{Py_tp_getset, State_getset},
{Py_tp_methods, State_methods},
{Py_tp_richcompare, State_richcompare},
{Py_tp_hash, (hashfunc)State_hash},
{Py_tp_dealloc, (void*)State_dealloc},
{Py_tp_getset, (void*)State_getset},
{Py_tp_methods, (void*)State_methods},
{Py_tp_richcompare, (void*)State_richcompare},
{Py_tp_hash, (void*)State_hash},
{0, NULL}
};

Expand All @@ -348,11 +348,11 @@ struct Game {
};

static PyType_Slot Action_slots[] = {
{Py_tp_dealloc, (destructor)Action_dealloc},
{Py_tp_traverse, Action_traverse},
{Py_tp_methods, Action_methods},
{Py_tp_richcompare, Action_richcompare},
{Py_tp_hash, (hashfunc)Action_hash},
{Py_tp_dealloc, (void*)Action_dealloc},
{Py_tp_traverse, (void*)Action_traverse},
{Py_tp_methods, (void*)Action_methods},
{Py_tp_richcompare, (void*)Action_richcompare},
{Py_tp_hash, (void*)Action_hash},
{0, NULL}
};

Expand Down

0 comments on commit d0406dc

Please sign in to comment.