summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/gui
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/gui
parent0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff)
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/gui')
-rw-r--r--plugins/pychrysalide/gui/panels/panel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysalide/gui/panels/panel.c b/plugins/pychrysalide/gui/panels/panel.c
index 1721780..37b682f 100644
--- a/plugins/pychrysalide/gui/panels/panel.c
+++ b/plugins/pychrysalide/gui/panels/panel.c
@@ -199,13 +199,13 @@ static bool py_panel_item_define_constants(PyTypeObject *obj_type)
result = true;
- result &= PyDict_AddIntMacro(obj_type, PIP_INVALID);
+ result &= PyDict_AddULongMacro(obj_type, PIP_INVALID);
- result &= PyDict_AddIntMacro(obj_type, PIP_SINGLETON);
- result &= PyDict_AddIntMacro(obj_type, PIP_BINARY_VIEW);
- result &= PyDict_AddIntMacro(obj_type, PIP_OTHER);
+ result &= PyDict_AddULongMacro(obj_type, PIP_SINGLETON);
+ result &= PyDict_AddULongMacro(obj_type, PIP_BINARY_VIEW);
+ result &= PyDict_AddULongMacro(obj_type, PIP_OTHER);
- result &= PyDict_AddIntMacro(obj_type, PIP_COUNT);
+ result &= PyDict_AddULongMacro(obj_type, PIP_COUNT);
return result;