mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix some warnings from MSVC
This commit is contained in:
parent
35b40c65f6
commit
a439191efa
4 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue