summaryrefslogtreecommitdiffstats
path: root/Python/pystrtod.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-29 14:33:55 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-29 14:33:55 (GMT)
commit80181e2b7871fb1d4f5fc8bc302db0e7e460d858 (patch)
tree0ba4249b481ba7a4dc9f0a2abb86d57d643e466d /Python/pystrtod.c
parentb569ee4863bebac6a8c3437563f30f1acd4f34cc (diff)
downloadcpython-80181e2b7871fb1d4f5fc8bc302db0e7e460d858.zip
cpython-80181e2b7871fb1d4f5fc8bc302db0e7e460d858.tar.gz
cpython-80181e2b7871fb1d4f5fc8bc302db0e7e460d858.tar.bz2
Fix compiler warning.
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r--Python/pystrtod.c2
1 files changed, 1 insertions, 1 deletions
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;
}