mirror of https://github.com/python/cpython.git
Make _PyTime_RoundHalfEven() private again
This commit is contained in:
parent
17ebaa93d4
commit
ce6aa749b4
|
@ -44,11 +44,6 @@ PyAPI_FUNC(PyObject *) _PyLong_FromTime_t(
|
||||||
PyAPI_FUNC(time_t) _PyLong_AsTime_t(
|
PyAPI_FUNC(time_t) _PyLong_AsTime_t(
|
||||||
PyObject *obj);
|
PyObject *obj);
|
||||||
|
|
||||||
/* Round to nearest with ties going to nearest even integer
|
|
||||||
(_PyTime_ROUND_HALF_EVEN) */
|
|
||||||
PyAPI_FUNC(double) _PyTime_RoundHalfEven(
|
|
||||||
double x);
|
|
||||||
|
|
||||||
/* Convert a number of seconds, int or float, to time_t. */
|
/* Convert a number of seconds, int or float, to time_t. */
|
||||||
PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
|
PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
|
||||||
PyObject *obj,
|
PyObject *obj,
|
||||||
|
|
|
@ -60,7 +60,9 @@ _PyLong_FromTime_t(time_t t)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
/* Round to nearest with ties going to nearest even integer
|
||||||
|
(_PyTime_ROUND_HALF_EVEN) */
|
||||||
|
static double
|
||||||
_PyTime_RoundHalfEven(double x)
|
_PyTime_RoundHalfEven(double x)
|
||||||
{
|
{
|
||||||
double rounded = round(x);
|
double rounded = round(x);
|
||||||
|
|
Loading…
Reference in New Issue