summaryrefslogtreecommitdiff
path: root/Python/pytime.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index ffb390afe5..02a1edfea0 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -60,8 +60,7 @@ _PyLong_FromTime_t(time_t t)
#endif
}
-/* Round to nearest with ties going away from zero (_PyTime_ROUND_HALF_UP). */
-static double
+double
_PyTime_RoundHalfUp(double x)
{
/* volatile avoids optimization changing how numbers are rounded */