summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:14:09 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:14:09 (GMT)
commit64182fe0b39870d30b08da54696c4d02e7b52bc5 (patch)
treedc4d5d2672d7fe70e9f0ed8411ca23be9df849b6 /Modules/getpath.c
parent7b782b61c597a989a21a22c15ee95decf997429f (diff)
downloadcpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.zip
cpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.tar.gz
cpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.tar.bz2
Some more changes to make code compile under a C++ compiler.
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 4716d15..40c3692 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -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 */