Fix the --with-cxx-main build.
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 @@
 	/* 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;