summaryrefslogtreecommitdiff
path: root/Python/pystrtod.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:14:09 +0000
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:14:09 +0000
commit1179e5d9b3fa7a8621eafc6c5152c46f46739db0 (patch)
treeeea0c3890340eae9a6b6335d7a5093e3a4e871fd /Python/pystrtod.c
parent497864c5432a68ac8ae7708642cba8f4a640e66c (diff)
downloadcpython-1179e5d9b3fa7a8621eafc6c5152c46f46739db0.tar.gz
Some more changes to make code compile under a C++ compiler.
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r--Python/pystrtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index 83e792db1e..db4cad17d7 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);