summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/core
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/pychrysalide/core
parent90184484440afd7bc4b85587f450c1b9ccd6e8de (diff)
Fixed some cases from the test suite.
Diffstat (limited to 'plugins/pychrysalide/core')
-rw-r--r--plugins/pychrysalide/core/constants.c2
1 files changed, 1 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;