Some more changes to make code compile under a C++ compiler.

This commit is contained in:
Anthony Baxter 2006-04-11 12:14:09 +00:00
parent 7b782b61c5
commit 64182fe0b3
5 changed files with 11 additions and 10 deletions

View file

@ -566,7 +566,7 @@ calculate_path(void)
bufsz += strlen(exec_prefix) + 1;
/* This is the only malloc call in this file */
buf = PyMem_Malloc(bufsz);
buf = (char *)PyMem_Malloc(bufsz);
if (buf == NULL) {
/* We can't exit, so print a warning and limp along */