diff options
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r-- | plugins/pychrysalide/helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c index be580a4..dae2aea 100644 --- a/plugins/pychrysalide/helpers.c +++ b/plugins/pychrysalide/helpers.c @@ -32,6 +32,7 @@ #include "access.h" +#include "constval.h" @@ -222,7 +223,7 @@ bool PyDict_AddIntConstant(PyTypeObject *obj_type, const char *key, long value) PyObject *item; /* Nouvel élément à insérer */ int ret; /* Bilan d'un ajout */ - item = PyLong_FromLong(value); + item = build_constval_from_c_code(key, value); ret = PyDict_SetItemString(obj_type->tp_dict, key, item); result = (ret != -1); |