summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-08-15 08:34:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-08-15 08:34:22 (GMT)
commit18fe9a81c7531d22384e331a7ef78617c722de15 (patch)
tree60a6f99dd3c9c390579c5660c4ce4f4c9b6271ca /plugins
parent340cbdbc4abedd060f3eb6745cd44e33ed19b93c (diff)
Changed the order of arguments for the Python symbol constructor.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/format/symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/format/symbol.c b/plugins/pychrysalide/format/symbol.c
index 962c627..7de534c 100644
--- a/plugins/pychrysalide/format/symbol.c
+++ b/plugins/pychrysalide/format/symbol.c
@@ -243,8 +243,8 @@ static char *g_binary_symbol_get_label_wrapper(const GBinSymbol *symbol)
static int py_binary_symbol_init(PyObject *self, PyObject *args, PyObject *kwds)
{
- SymbolType stype; /* Type prévu pour le symbole */
mrange_t range; /* Version native d'un espace */
+ unsigned long stype; /* Type prévu pour le symbole */
int ret; /* Bilan de lecture des args. */
GBinSymbol *symbol; /* Version GLib du symble */
@@ -265,7 +265,7 @@ static int py_binary_symbol_init(PyObject *self, PyObject *args, PyObject *kwds)
/* Récupération des paramètres */
- ret = PyArg_ParseTuple(args, "kO&", &stype, convert_any_to_mrange, &range);
+ ret = PyArg_ParseTuple(args, "O&k", convert_any_to_mrange, &range, &stype);
if (!ret) return -1;
if (stype >= STP_COUNT)