summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch/instruction.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-13 21:53:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-13 21:53:43 (GMT)
commitccf90bf696a0852ef34ac2a86137b34e92827ec0 (patch)
treed43c65faf4316d8a55d67c74f363f3f4371068cd /plugins/pychrysalide/arch/instruction.c
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/arch/instruction.c')
-rw-r--r--plugins/pychrysalide/arch/instruction.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c
index 6399d63..ce554ee 100644
--- a/plugins/pychrysalide/arch/instruction.c
+++ b/plugins/pychrysalide/arch/instruction.c
@@ -443,15 +443,15 @@ static bool py_arch_instruction_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, ILT_EXEC_FLOW);
- result &= PyDict_AddIntMacro(obj_type, ILT_JUMP);
- result &= PyDict_AddIntMacro(obj_type, ILT_CASE_JUMP);
- result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_TRUE);
- result &= PyDict_AddIntMacro(obj_type, ILT_JUMP_IF_FALSE);
- result &= PyDict_AddIntMacro(obj_type, ILT_LOOP);
- result &= PyDict_AddIntMacro(obj_type, ILT_CALL);
- result &= PyDict_AddIntMacro(obj_type, ILT_CATCH_EXCEPTION);
- result &= PyDict_AddIntMacro(obj_type, ILT_REF);
+ result &= PyDict_AddULongMacro(obj_type, ILT_EXEC_FLOW);
+ result &= PyDict_AddULongMacro(obj_type, ILT_JUMP);
+ result &= PyDict_AddULongMacro(obj_type, ILT_CASE_JUMP);
+ result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_TRUE);
+ result &= PyDict_AddULongMacro(obj_type, ILT_JUMP_IF_FALSE);
+ result &= PyDict_AddULongMacro(obj_type, ILT_LOOP);
+ result &= PyDict_AddULongMacro(obj_type, ILT_CALL);
+ result &= PyDict_AddULongMacro(obj_type, ILT_CATCH_EXCEPTION);
+ result &= PyDict_AddULongMacro(obj_type, ILT_REF);
return result;