Mercurial > cpython-lru_cache-weakref
diff Python/pystrtod.c @ 37607:480a5625e286 legacy-trunk
Some more changes to make code compile under a C++ compiler.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Tue, 11 Apr 2006 12:14:09 +0000 |
| parents | 7fdc639bc5b4 |
| children | 3d477d158401 |
line wrap: on
line diff
--- a/Python/pystrtod.c Tue Apr 11 12:01:56 2006 +0000 +++ b/Python/pystrtod.c Tue Apr 11 12:14:09 2006 +0000 @@ -101,7 +101,7 @@ 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);
