Get rid of a compile-time warning by casting to (size_t).
MFC after: 1 week
This commit is contained in:
parent
a33973d41a
commit
79c96a6ccd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80174
@ -778,7 +778,7 @@ putmsg(struct printer *pp, int argc, char **argv)
|
||||
cp1 = buf;
|
||||
while (--argc >= 0) {
|
||||
cp2 = *argv++;
|
||||
while ((cp1 - buf) < sizeof(buf) && (*cp1++ = *cp2++))
|
||||
while ((size_t)(cp1 - buf) < sizeof(buf) && (*cp1++ = *cp2++))
|
||||
;
|
||||
cp1[-1] = ' ';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user