summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis/type.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/type.c
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/analysis/type.c')
-rw-r--r--plugins/pychrysalide/analysis/type.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysalide/analysis/type.c b/plugins/pychrysalide/analysis/type.c
index ea81642..0134b0a 100644
--- a/plugins/pychrysalide/analysis/type.c
+++ b/plugins/pychrysalide/analysis/type.c
@@ -406,12 +406,12 @@ static bool py_data_type_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, TQF_NONE);
- result &= PyDict_AddIntMacro(obj_type, TQF_RESTRICT);
- result &= PyDict_AddIntMacro(obj_type, TQF_VOLATILE);
- result &= PyDict_AddIntMacro(obj_type, TQF_CONST);
+ result &= PyDict_AddULongMacro(obj_type, TQF_NONE);
+ result &= PyDict_AddULongMacro(obj_type, TQF_RESTRICT);
+ result &= PyDict_AddULongMacro(obj_type, TQF_VOLATILE);
+ result &= PyDict_AddULongMacro(obj_type, TQF_CONST);
- result &= PyDict_AddIntMacro(obj_type, TQF_ALL);
+ result &= PyDict_AddULongMacro(obj_type, TQF_ALL);
return result;