diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 12:14:09 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 12:14:09 (GMT) |
commit | 64182fe0b39870d30b08da54696c4d02e7b52bc5 (patch) | |
tree | dc4d5d2672d7fe70e9f0ed8411ca23be9df849b6 /Modules/main.c | |
parent | 7b782b61c597a989a21a22c15ee95decf997429f (diff) | |
download | cpython-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.c | 4 |
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"); |