summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/arch
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/arch')
-rw-r--r--plugins/pychrysa/arch/processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysa/arch/processor.c b/plugins/pychrysa/arch/processor.c
index cc1113a..f36b7f0 100644
--- a/plugins/pychrysa/arch/processor.c
+++ b/plugins/pychrysa/arch/processor.c
@@ -138,7 +138,7 @@ bool add_arch_processor_type_to_python_module(PyObject *module)
Py_INCREF(&py_arch_processor_type_type);
ret = PyModule_AddObject(module, "ArchProcessorType", (PyObject *)&py_arch_processor_type_type);
- __test = &py_arch_processor_type_type;
+ __test = (PyObject *)&py_arch_processor_type_type;
return (ret == 0);
@@ -283,6 +283,6 @@ bool add_arch_processor_to_python_module(PyObject *module)
result = add_arch_processor_type_to_python_module(module);
- return (ret == 0);
+ return (ret == 0 && result);
}