summaryrefslogtreecommitdiff
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-09 22:28:09 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-09-09 22:28:09 +0200
commit44e262519e28bd9149a791b4a0f1d5087595abc5 (patch)
tree97fe64123f53b1f9ec443cee44c7d14134efb45d /Python/pytime.c
parent4d197e7292addbf9ad399cf8a670503a6a675176 (diff)
downloadcpython-44e262519e28bd9149a791b4a0f1d5087595abc5.tar.gz
Make _PyTime_RoundHalfEven() private again
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 9f7ee2d0ed..37dfabbb0a 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -60,7 +60,9 @@ _PyLong_FromTime_t(time_t t)
#endif
}
-double
+/* Round to nearest with ties going to nearest even integer
+ (_PyTime_ROUND_HALF_EVEN) */
+static double
_PyTime_RoundHalfEven(double x)
{
double rounded = round(x);