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 /Python/pystrtod.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 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 83e792d..db4cad1 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -101,7 +101,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr) char *copy, *c; /* We need to convert the '.' to the locale specific decimal point */ - copy = malloc(end - nptr + 1 + decimal_point_len); + copy = (char *)malloc(end - nptr + 1 + decimal_point_len); c = copy; memcpy(c, nptr, decimal_point_pos - nptr); |