summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-04-17 00:20:57 (GMT)
committerCollin Winter <collinw@gmail.com>2010-04-17 00:20:57 (GMT)
commitdfa66c1dda47ffea27500c871bbc867d2bce29bd (patch)
tree39d1b205ff338ce3f2a68d7199bc94266f394a76 /Modules
parent28a691b7fdde1b8abafa4c4a5025e6bfa44f48b9 (diff)
downloadcpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.zip
cpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.tar.gz
cpython-dfa66c1dda47ffea27500c871bbc867d2bce29bd.tar.bz2
Fix the --with-cxx-main build.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/python.c b/Modules/python.c
index 7bc9c3a..f5d3870 100644
--- a/Modules/python.c
+++ b/Modules/python.c
@@ -57,7 +57,7 @@ _Py_char2wchar(char* arg)
/* Overallocate; as multi-byte characters are in the argument, the
actual output could use less memory. */
argsize = strlen(arg) + 1;
- res = PyMem_Malloc(argsize*sizeof(wchar_t));
+ res = (wchar_t*)PyMem_Malloc(argsize*sizeof(wchar_t));
if (!res) goto oom;
in = (unsigned char*)arg;
out = res;