]> granicus.if.org Git - python/commitdiff
Fix compiler warning.
authorGeorg Brandl <georg@python.org>
Mon, 29 May 2006 14:33:55 +0000 (14:33 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 29 May 2006 14:33:55 +0000 (14:33 +0000)
Python/pystrtod.c

index 53d6325f89bb13b2e8caa4902292729f8b8d52f0..e1c84ea03e0eb735841b3493a85b6e6d4690a2b1 100644 (file)
@@ -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;
                }