diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-09 20:28:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-09 20:28:09 (GMT) |
commit | ce6aa749b40d39c8eb82463068cc58f974fbfdf5 (patch) | |
tree | b508b4db7ae24053873dd4fa278c3f3a4c7c2d64 /Python/pytime.c | |
parent | 17ebaa93d42b396a6538c8e48dfdae70bac489ee (diff) | |
download | cpython-ce6aa749b40d39c8eb82463068cc58f974fbfdf5.zip cpython-ce6aa749b40d39c8eb82463068cc58f974fbfdf5.tar.gz cpython-ce6aa749b40d39c8eb82463068cc58f974fbfdf5.tar.bz2 |
Make _PyTime_RoundHalfEven() private again
Diffstat (limited to 'Python/pytime.c')
-rw-r--r-- | Python/pytime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c index 9f7ee2d..37dfabb 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); |