mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Some more changes to make code compile under a C++ compiler.
This commit is contained in:
parent
7b782b61c5
commit
64182fe0b3
5 changed files with 11 additions and 10 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue