Fix compiler warning.
This commit is contained in:
parent
b569ee4863
commit
80181e2b78
|
@ -105,7 +105,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr)
|
||||||
copy = (char *)PyMem_MALLOC(end - nptr + 1 + decimal_point_len);
|
copy = (char *)PyMem_MALLOC(end - nptr + 1 + decimal_point_len);
|
||||||
if (copy == NULL) {
|
if (copy == NULL) {
|
||||||
if (endptr)
|
if (endptr)
|
||||||
*endptr = nptr;
|
*endptr = (char *)nptr;
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue