diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:38:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:38:11 (GMT) |
commit | 0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (patch) | |
tree | 385321b7134eb866ce20d924ced364685b57488b /plugins/pychrysalide/helpers.c | |
parent | c806bc75910c129c6d78115cfdc571316e060412 (diff) |
Provided a representation for constant values imported from C code.
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); |