Mercurial > cpython-lru_cache-weakref
diff Modules/python.c @ 60649:c532afb0fa89
Fix the --with-cxx-main build.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Sat, 17 Apr 2010 00:20:57 +0000 |
| parents | 62d11785204f |
| children | fe6b6c189bb4 |
line wrap: on
line diff
--- a/Modules/python.c Sat Apr 17 00:19:56 2010 +0000 +++ b/Modules/python.c Sat Apr 17 00:20:57 2010 +0000 @@ -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;
