commit | 80181e2b7871fb1d4f5fc8bc302db0e7e460d858 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon May 29 14:33:55 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Mon May 29 14:33:55 2006 +0000 |
tree | 0ba4249b481ba7a4dc9f0a2abb86d57d643e466d | |
parent | b569ee4863bebac6a8c3437563f30f1acd4f34cc [diff] |
Fix compiler warning.
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 @@ copy = (char *)PyMem_MALLOC(end - nptr + 1 + decimal_point_len); if (copy == NULL) { if (endptr) - *endptr = nptr; + *endptr = (char *)nptr; errno = ENOMEM; return val; }