Fix compiler warning.

This commit is contained in:
Georg Brandl 2006-05-29 14:33:55 +00:00
parent b569ee4863
commit 80181e2b78
1 changed files with 1 additions and 1 deletions

View 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;
}