Fix some warnings from MSVC

This commit is contained in:
Steve Dower 2016-09-06 19:09:15 -07:00
parent 35b40c65f6
commit a439191efa
4 changed files with 4 additions and 7 deletions

View file

@ -58,7 +58,7 @@ main(int argc, char *argv[])
fprintf(stderr, "cannot fstat '%s'\n", inpath);
goto error;
}
text_size = status.st_size;
text_size = (size_t)status.st_size;
text = (char *) malloc(text_size + 1);
if (text == NULL) {
fprintf(stderr, "could not allocate %ld bytes\n", (long) text_size);