diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-19 14:15:00 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-19 14:15:00 (GMT) |
commit | 08a8f5fff90b826553e833c1caee0fd8f7711cb0 (patch) | |
tree | 506bc41a986f1c52cdf018db7c257f2bce917b7a /Modules/python.c | |
parent | 206e3074d34aeb5a4d0c1e24d970b6569f7ad702 (diff) | |
download | cpython-08a8f5fff90b826553e833c1caee0fd8f7711cb0.zip cpython-08a8f5fff90b826553e833c1caee0fd8f7711cb0.tar.gz cpython-08a8f5fff90b826553e833c1caee0fd8f7711cb0.tar.bz2 |
restore compilation on OpenBSD #4146
Diffstat (limited to 'Modules/python.c')
-rw-r--r-- | Modules/python.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/python.c b/Modules/python.c index bf1ba9a..9e78889 100644 --- a/Modules/python.c +++ b/Modules/python.c @@ -17,9 +17,9 @@ wmain(int argc, wchar_t **argv) int main(int argc, char **argv) { - wchar_t **argv_copy = PyMem_Malloc(sizeof(wchar_t*)*argc); + wchar_t **argv_copy = (wchar_t **)PyMem_Malloc(sizeof(wchar_t*)*argc); /* We need a second copies, as Python might modify the first one. */ - wchar_t **argv_copy2 = PyMem_Malloc(sizeof(wchar_t*)*argc); + wchar_t **argv_copy2 = (wchar_t **)PyMem_Malloc(sizeof(wchar_t*)*argc); int i, res; char *oldloc; /* 754 requires that FP exceptions run in "no stop" mode by default, @@ -54,7 +54,7 @@ main(int argc, char **argv) fprintf(stderr, "Could not convert argument %d to string\n", i); return 1; } - argv_copy[i] = PyMem_Malloc((argsize+1)*sizeof(wchar_t)); + argv_copy[i] = (wchar_t *)PyMem_Malloc((argsize+1)*sizeof(wchar_t)); argv_copy2[i] = argv_copy[i]; if (!argv_copy[i]) { fprintf(stderr, "out of memory\n"); |