summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis/types/cse.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/analysis/types/cse.c
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/analysis/types/cse.c')
-rw-r--r--plugins/pychrysalide/analysis/types/cse.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/pychrysalide/analysis/types/cse.c b/plugins/pychrysalide/analysis/types/cse.c
index 4643a8d..5f0bb0a 100644
--- a/plugins/pychrysalide/analysis/types/cse.c
+++ b/plugins/pychrysalide/analysis/types/cse.c
@@ -222,15 +222,15 @@ static bool py_class_enum_type_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, CET_UNKNOWN);
- result &= PyDict_AddIntMacro(obj_type, CET_STRUCT);
- result &= PyDict_AddIntMacro(obj_type, CET_ENUM);
- result &= PyDict_AddIntMacro(obj_type, CET_CLASS);
- result &= PyDict_AddIntMacro(obj_type, CET_NAMESPACE);
- result &= PyDict_AddIntMacro(obj_type, CET_VIRTUAL_TABLE);
- result &= PyDict_AddIntMacro(obj_type, CET_VIRTUAL_STRUCT);
-
- result &= PyDict_AddIntMacro(obj_type, CET_COUNT);
+ result &= PyDict_AddULongMacro(obj_type, CET_UNKNOWN);
+ result &= PyDict_AddULongMacro(obj_type, CET_STRUCT);
+ result &= PyDict_AddULongMacro(obj_type, CET_ENUM);
+ result &= PyDict_AddULongMacro(obj_type, CET_CLASS);
+ result &= PyDict_AddULongMacro(obj_type, CET_NAMESPACE);
+ result &= PyDict_AddULongMacro(obj_type, CET_VIRTUAL_TABLE);
+ result &= PyDict_AddULongMacro(obj_type, CET_VIRTUAL_STRUCT);
+
+ result &= PyDict_AddULongMacro(obj_type, CET_COUNT);
return result;