Fixed Visual Studio compiler warning.
This commit is contained in:
parent
a28a01c124
commit
8ebecded22
|
@ -972,7 +972,7 @@ static int cmd_cat2(char *args)
|
||||||
PHYSFS_close(f2);
|
PHYSFS_close(f2);
|
||||||
return 1;
|
return 1;
|
||||||
} /* if */
|
} /* if */
|
||||||
buffer1len += rc;
|
buffer1len += (size_t) rc;
|
||||||
|
|
||||||
ptr = realloc(buffer2, buffer2len + readlen);
|
ptr = realloc(buffer2, buffer2len + readlen);
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
|
@ -997,7 +997,7 @@ static int cmd_cat2(char *args)
|
||||||
PHYSFS_close(f2);
|
PHYSFS_close(f2);
|
||||||
return 1;
|
return 1;
|
||||||
} /* if */
|
} /* if */
|
||||||
buffer2len += rc;
|
buffer2len += (size_t) rc;
|
||||||
} while (!PHYSFS_eof(f1) || !PHYSFS_eof(f2));
|
} while (!PHYSFS_eof(f1) || !PHYSFS_eof(f2));
|
||||||
|
|
||||||
printf("file '%s' ...\n\n", fname1);
|
printf("file '%s' ...\n\n", fname1);
|
||||||
|
|
Loading…
Reference in New Issue