summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:57:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:57:14 (GMT)
commita695f83f0de060a77352174be8a5c6f6500ab98a (patch)
tree96ce032785c3d0503e2952e9b5794dbd3cd2dcfa /Include
parent869e1778c0bcfc0928701c6ae0703934359d036b (diff)
downloadcpython-a695f83f0de060a77352174be8a5c6f6500ab98a.zip
cpython-a695f83f0de060a77352174be8a5c6f6500ab98a.tar.gz
cpython-a695f83f0de060a77352174be8a5c6f6500ab98a.tar.bz2
Issue #22117: Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methods
Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
Diffstat (limited to 'Include')
-rw-r--r--Include/pytime.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Include/pytime.h b/Include/pytime.h
index ff3e203..1f14d6d 100644
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -25,14 +25,9 @@ typedef PY_INT64_T _PyTime_t;
#endif
typedef enum {
- /* Round towards zero. */
- _PyTime_ROUND_DOWN=0,
- /* Round away from zero.
- For example, used for timeout to wait "at least" N seconds. */
- _PyTime_ROUND_UP,
/* Round towards minus infinity (-inf).
For example, used to read a clock. */
- _PyTime_ROUND_FLOOR,
+ _PyTime_ROUND_FLOOR=0,
/* Round towards infinity (+inf).
For example, used for timeout to wait "at least" N seconds. */
_PyTime_ROUND_CEILING