From dfa66c1dda47ffea27500c871bbc867d2bce29bd Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Sat, 17 Apr 2010 00:20:57 +0000 Subject: Fix the --with-cxx-main build. --- Modules/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/python.c') diff --git a/Modules/python.c b/Modules/python.c index 7bc9c3a2d2..f5d38709dd 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; -- cgit v1.2.1