summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-07 02:09:15 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-07 02:09:15 (GMT)
commita439191efa9fee12ea3c17b23b0d3f748ff76997 (patch)
tree3641ca9e731f7247521e8d8b18329d952994e354 /Programs
parent35b40c65f6a4d902d7dbff21a02e4d211b0952b1 (diff)
downloadcpython-a439191efa9fee12ea3c17b23b0d3f748ff76997.zip
cpython-a439191efa9fee12ea3c17b23b0d3f748ff76997.tar.gz
cpython-a439191efa9fee12ea3c17b23b0d3f748ff76997.tar.bz2
Fix some warnings from MSVC
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_freeze_importlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/_freeze_importlib.c b/Programs/_freeze_importlib.c
index 0793984..1069966 100644
--- a/Programs/_freeze_importlib.c
+++ b/Programs/_freeze_importlib.c
@@ -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);