mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix compiler warning.
This commit is contained in:
parent
b569ee4863
commit
80181e2b78
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue