MCPcopy Create free account
hub / github.com/simplejson/simplejson / json_PyOS_string_to_double

Function json_PyOS_string_to_double

simplejson/_speedups.c:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static double
49json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception);
50static double
51json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception)
52{
53 double x;
54 assert(endptr == NULL);
55 assert(overflow_exception == NULL);
56 PyFPE_START_PROTECT("json_PyOS_string_to_double", return -1.0;)
57 x = PyOS_ascii_atof(s);
58 PyFPE_END_PROTECT(x)
59 return x;
60}
61#endif
62#endif /* PY_VERSION_HEX < 0x02070000 */
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…