diff options
Diffstat (limited to 'src/zjs_util.c')
-rw-r--r-- | src/zjs_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zjs_util.c b/src/zjs_util.c index 5802d06..effa99e 100644 --- a/src/zjs_util.c +++ b/src/zjs_util.c @@ -424,8 +424,8 @@ static int zjs_validate_arg(const char *expectation, jerry_value_t arg) // NOTE: This relies on Z_ANY to Z_UNDEFINED being consecutive and // Z_UNDEFINED being the last one int type_index = expectation[index] - Z_ANY[0]; - if (type_index < 0 || type_index > Z_UNDEFINED[0]) { - ERR_PRINT("invalid argument type: '%c'", expectation[index]); + if (type_index < 0 || expectation[index] > Z_UNDEFINED[0]) { + ERR_PRINT("invalid argument type: '%c'\n", expectation[index]); return ZJS_INTERNAL_ERROR; } |