Fix the --with-cxx-main build.

This commit is contained in:
Collin Winter 2010-04-17 00:20:57 +00:00
parent 28a691b7fd
commit dfa66c1dda
2 changed files with 7 additions and 1 deletions

View file

@ -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;