cpython: df074eb2a5be (original) (raw)

Mercurial > cpython

changeset 97574:df074eb2a5be

Issue #23517: Try to fix test_time on "x86 Ubuntu Shared 3.x" buildbot [#23517]

Victor Stinner victor.stinner@gmail.com
date Wed, 02 Sep 2015 11:58:56 +0200
parents 3a361a56b88c
children 59185ef69166
files Python/pytime.c
diffstat 1 files changed, 10 insertions(+), 7 deletions(-)[+] [-] Python/pytime.c 17

line wrap: on

line diff

--- a/Python/pytime.c +++ b/Python/pytime.c @@ -64,11 +64,13 @@ PyObject * static double _PyTime_RoundHalfUp(double x) {

} @@ -77,7 +79,7 @@ static int double denominator, _PyTime_round_t round) { double intpart, err;

d = PyFloat_AsDouble(obj); if (round == _PyTime_ROUND_HALF_UP) @@ -255,7 +258,7 @@ static int _PyTime_FromFloatObject(_PyTime_t *t, double value, _PyTime_round_t round, long to_nanoseconds) {