From 80181e2b7871fb1d4f5fc8bc302db0e7e460d858 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 29 May 2006 14:33:55 +0000 Subject: Fix compiler warning. --- Python/pystrtod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 53d6325..e1c84ea 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; } -- cgit v0.12