Commit 029ef8e7 by Victor M. Alvarez

Add explicit type cast to fix warning.

parent f21132b3
......@@ -2372,9 +2372,9 @@ MOD_INIT(yara)
if (PyType_Ready(&Match_Type) < 0)
return MOD_ERROR_VAL;
PyModule_AddObject(m, "Rule", &Rule_Type);
PyModule_AddObject(m, "Rules", &Rules_Type);
PyModule_AddObject(m, "Match", &Match_Type);
PyModule_AddObject(m, "Rule", (PyObject*) &Rule_Type);
PyModule_AddObject(m, "Rules", (PyObject*) &Rules_Type);
PyModule_AddObject(m, "Match", (PyObject*) &Match_Type);
PyModule_AddObject(m, "Error", YaraError);
PyModule_AddObject(m, "SyntaxError", YaraSyntaxError);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment