summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/format
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/format')
-rw-r--r--plugins/pychrysalide/format/symbol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/pychrysalide/format/symbol.c b/plugins/pychrysalide/format/symbol.c
index a88a260..873510d 100644
--- a/plugins/pychrysalide/format/symbol.c
+++ b/plugins/pychrysalide/format/symbol.c
@@ -469,6 +469,7 @@ static int py_binary_symbol_set_stype(PyObject *self, PyObject *value, void *clo
return -1;
symbol = G_BIN_SYMBOL(pygobject_get(self));
+
type = PyLong_AsUnsignedLong(value);
g_binary_symbol_set_stype(symbol, type);
@@ -537,6 +538,7 @@ static int py_binary_symbol_set_status(PyObject *self, PyObject *value, void *cl
return -1;
symbol = G_BIN_SYMBOL(pygobject_get(self));
+
status = PyLong_AsUnsignedLong(value);
g_binary_symbol_set_status(symbol, status);