diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
commit | ccf90bf696a0852ef34ac2a86137b34e92827ec0 (patch) | |
tree | d43c65faf4316d8a55d67c74f363f3f4371068cd /plugins/pychrysalide/core | |
parent | 0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff) |
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/core')
-rw-r--r-- | plugins/pychrysalide/core/logs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/pychrysalide/core/logs.c b/plugins/pychrysalide/core/logs.c index 589315e..38084c4 100644 --- a/plugins/pychrysalide/core/logs.c +++ b/plugins/pychrysalide/core/logs.c @@ -233,13 +233,13 @@ static bool define_python_log_constants(PyTypeObject *obj_type) result = true; - result &= PyDict_AddIntMacro(obj_type, LMT_INFO); - result &= PyDict_AddIntMacro(obj_type, LMT_PROCESS); - result &= PyDict_AddIntMacro(obj_type, LMT_WARNING); - result &= PyDict_AddIntMacro(obj_type, LMT_BAD_BINARY); - result &= PyDict_AddIntMacro(obj_type, LMT_ERROR); - result &= PyDict_AddIntMacro(obj_type, LMT_EXT_ERROR); - result &= PyDict_AddIntMacro(obj_type, LMT_COUNT); + result &= PyDict_AddULongMacro(obj_type, LMT_INFO); + result &= PyDict_AddULongMacro(obj_type, LMT_PROCESS); + result &= PyDict_AddULongMacro(obj_type, LMT_WARNING); + result &= PyDict_AddULongMacro(obj_type, LMT_BAD_BINARY); + result &= PyDict_AddULongMacro(obj_type, LMT_ERROR); + result &= PyDict_AddULongMacro(obj_type, LMT_EXT_ERROR); + result &= PyDict_AddULongMacro(obj_type, LMT_COUNT); return result; |