diff options
Diffstat (limited to 'plugins/pychrysalide/core')
-rw-r--r-- | plugins/pychrysalide/core/constants.c | 2 |
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; |