diff options
author | Georg Brandl <georg@python.org> | 2006-05-29 14:33:55 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-29 14:33:55 +0000 |
commit | 68048e7eef91af8bbac5e54f5ac80f982b815f7f (patch) | |
tree | b62bae2a5c082cba1cb12d8f177ed2cd117f42ee /Python/pystrtod.c | |
parent | bd34cf3d05d90f4d0e049cff973a56623e5df308 (diff) | |
download | cpython-68048e7eef91af8bbac5e54f5ac80f982b815f7f.tar.gz |
Fix compiler warning.
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 2 |
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; } |