summaryrefslogtreecommitdiff
path: root/Python/pystrtod.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-29 14:33:55 +0000
committerGeorg Brandl <georg@python.org>2006-05-29 14:33:55 +0000
commit68048e7eef91af8bbac5e54f5ac80f982b815f7f (patch)
treeb62bae2a5c082cba1cb12d8f177ed2cd117f42ee /Python/pystrtod.c
parentbd34cf3d05d90f4d0e049cff973a56623e5df308 (diff)
downloadcpython-68048e7eef91af8bbac5e54f5ac80f982b815f7f.tar.gz
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 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;
}