diff options
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 299ad3758..048d6c625 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4970,7 +4970,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) } else if (ret == 0) /* handle null as normal char */ ret = 1; - else if (ret > val) { + else if (ret > (size_t)val) { /* Some mbrlen()s return the full char len */ ret = val; } |