Skip to content

Commit

Permalink
fixup placate pedantic compiler on travis?
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Apr 24, 2021
1 parent 37675f4 commit 66dc486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/c_unittests/test_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fake_policy = {
test_module_name, Py_file_input);
REQUIRE(module != nullptr);

PyObject *pModuleObj = PyImport_ExecCodeModule(test_module_name, module);
PyObject *pModuleObj = PyImport_ExecCodeModule(const_cast<char *>(test_module_name), module); // python 2 :(
REQUIRE(pModuleObj != nullptr);
// better to check with an if, use PyErr_Print() or such to read the error

Expand Down

0 comments on commit 66dc486

Please sign in to comment.