From: Georg Brandl Date: Mon, 29 May 2006 14:33:55 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: v2.5b1~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80181e2b7871fb1d4f5fc8bc302db0e7e460d858;p=python Fix compiler warning. --- diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 53d6325f89..e1c84ea03e 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -105,7 +105,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr) copy = (char *)PyMem_MALLOC(end - nptr + 1 + decimal_point_len); if (copy == NULL) { if (endptr) - *endptr = nptr; + *endptr = (char *)nptr; errno = ENOMEM; return val; }