Get rid of a compile-time warning by casting to (size_t).
MFC after: 1 week
This commit is contained in:
parent
011b9c7907
commit
a33973d41a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80173
@ -258,7 +258,7 @@ makeargv(void)
|
||||
register int n = 0;
|
||||
|
||||
margc = 0;
|
||||
for (cp = cmdline; *cp && (cp - cmdline) < sizeof(cmdline) &&
|
||||
for (cp = cmdline; *cp && (size_t)(cp - cmdline) < sizeof(cmdline) &&
|
||||
n < MAX_MARGV; n++) {
|
||||
while (isspace(*cp))
|
||||
cp++;
|
||||
|
Loading…
Reference in New Issue
Block a user