summaryrefslogtreecommitdiffstats
path: root/Modules/main.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/main.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/main.c')
-rw-r--r--Modules/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 913e82e..ceb5bed 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -208,7 +208,7 @@ Py_Main(int argc, char **argv)
/* -c is the last option; following arguments
that look like options are left for the
command to interpret. */
- command = malloc(strlen(_PyOS_optarg) + 2);
+ command = (char *)malloc(strlen(_PyOS_optarg) + 2);
if (command == NULL)
Py_FatalError(
"not enough memory to copy -c argument");
@@ -221,7 +221,7 @@ Py_Main(int argc, char **argv)
/* -m is the last option; following arguments
that look like options are left for the
module to interpret. */
- module = malloc(strlen(_PyOS_optarg) + 2);
+ module = (char *)malloc(strlen(_PyOS_optarg) + 2);
if (module == NULL)
Py_FatalError(
"not enough memory to copy -m argument");