1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

Silence a compiler warning.

This commit is contained in:
Wayne Davison 2008-01-21 19:15:39 +00:00
parent 709426fcfd
commit 172a81db90
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-01-21 Wayne Davison <wayned@users.sourceforge.net>
* unposted: Src/builtin.c: got rid of compiler warning about
a signed/unsigned comparison.
2008-01-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Completion/Unix/Command/_mount: make MATCH etc.

View file

@ -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;
}