summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 15159f8..dd80ae4 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1379,7 +1379,7 @@ parsenumber(struct compiling *c, char *s)
Py_complex z;
z.real = 0.;
PyFPE_START_PROTECT("atof", return 0)
- z.imag = atof(s);
+ z.imag = PyOS_ascii_atof(s);
PyFPE_END_PROTECT(z)
return PyComplex_FromCComplex(z);
}
@@ -1387,7 +1387,7 @@ parsenumber(struct compiling *c, char *s)
#endif
{
PyFPE_START_PROTECT("atof", return 0)
- dx = atof(s);
+ dx = PyOS_ascii_atof(s);
PyFPE_END_PROTECT(dx)
return PyFloat_FromDouble(dx);
}