aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index dc11aec..83e80f7 100644
--- a/expr.c
+++ b/expr.c
@@ -403,7 +403,7 @@ decodechar(const char *src, uint_least32_t *chr, bool *hexoct, const char *desc,
}
} else {
n = utf8dec(&c, s, 4);
- if (n == -1)
+ if (n == (size_t)-1)
error(loc, "%s contains invalid UTF-8", desc);
s += n;
}