Some more changes to make code compile under a C++ compiler.

This commit is contained in:
Anthony Baxter 2006-04-11 12:14:09 +00:00
parent 7b782b61c5
commit 64182fe0b3
5 changed files with 11 additions and 10 deletions

View file

@ -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);