summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-01 20:49:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-01 20:49:03 (GMT)
commit42d32a8c729e4fc0d8b1f3cf18ce870d55f59e26 (patch)
tree7fb6a8da30304f05e57af59d47a1d2b11dd5ab24 /plugins/pychrysalide/format
parent7602124306e5abdfba17106d7e52d8c58ac939e7 (diff)
Extended the Python API for database items.
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);