mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
New form of PyFPE_END_PROTECT macro.
This commit is contained in:
parent
1aeb1047ba
commit
45b83915f8
12 changed files with 36 additions and 36 deletions
|
|
@ -818,14 +818,14 @@ parsenumber(co, s)
|
|||
c.real = 0.;
|
||||
PyFPE_START_PROTECT("atof", return 0)
|
||||
c.imag = atof(s);
|
||||
PyFPE_END_PROTECT
|
||||
PyFPE_END_PROTECT(c)
|
||||
return newcomplexobject(c);
|
||||
}
|
||||
else {
|
||||
#endif
|
||||
PyFPE_START_PROTECT("atof", return 0)
|
||||
dx = atof(s);
|
||||
PyFPE_END_PROTECT
|
||||
PyFPE_END_PROTECT(dx)
|
||||
return newfloatobject(dx);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue