summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-06-30 22:10:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-06-30 22:10:07 (GMT)
commitd3c1294c05579db9dd5a1436883fe3fb78a052be (patch)
tree73d69a89271c15f1273cd1259ac85a276f1b9528 /plugins
parent90184484440afd7bc4b85587f450c1b9ccd6e8de (diff)
Fixed some cases from the test suite.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/core/constants.c2
-rw-r--r--plugins/pychrysalide/glibext/constants.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pychrysalide/core/constants.c b/plugins/pychrysalide/core/constants.c
index f3ec530..99abf95 100644
--- a/plugins/pychrysalide/core/constants.c
+++ b/plugins/pychrysalide/core/constants.c
@@ -109,7 +109,7 @@ int convert_to_log_message_type(PyObject *arg, void *dst)
case 1:
value = PyLong_AsUnsignedLong(arg);
- if (value > LMT_COUNT)
+ if (value >= LMT_COUNT)
{
PyErr_SetString(PyExc_TypeError, "invalid value for LogMessageType");
result = 0;
diff --git a/plugins/pychrysalide/glibext/constants.c b/plugins/pychrysalide/glibext/constants.c
index e24a6e0..47bd00d 100644
--- a/plugins/pychrysalide/glibext/constants.c
+++ b/plugins/pychrysalide/glibext/constants.c
@@ -70,6 +70,7 @@ bool define_binary_portion_constants(PyTypeObject *type)
if (result) result = add_const_to_group(values, "READ", PAC_READ);
if (result) result = add_const_to_group(values, "WRITE", PAC_WRITE);
if (result) result = add_const_to_group(values, "EXEC", PAC_EXEC);
+ if (result) result = add_const_to_group(values, "ALL", PAC_ALL);
if (!result)
{