diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pytime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pytime.c b/Python/pytime.c index 0d28911c37..ca4386aa08 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -31,6 +31,8 @@ _PyTime_RoundTowardsPosInf(int is_neg, _PyTime_round_t round) { if (round == _PyTime_ROUND_FLOOR) return 0; + if (round == _PyTime_ROUND_CEILING) + return 1; return ((round == _PyTime_ROUND_UP) ^ is_neg); } |