]> granicus.if.org Git - python/commitdiff
Make _PyTime_RoundHalfEven() private again
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 9 Sep 2015 20:28:09 +0000 (22:28 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 9 Sep 2015 20:28:09 +0000 (22:28 +0200)
Include/pytime.h
Python/pytime.c

index 54a0cc4db8ec483a91024103ac9d6b1dbd071768..5de756a761fedefe368f7d9f8848ebb5720bac71 100644 (file)
@@ -44,11 +44,6 @@ PyAPI_FUNC(PyObject *) _PyLong_FromTime_t(
 PyAPI_FUNC(time_t) _PyLong_AsTime_t(
     PyObject *obj);
 
-/* Round to nearest with ties going to nearest even integer
-   (_PyTime_ROUND_HALF_EVEN) */
-PyAPI_FUNC(double) _PyTime_RoundHalfEven(
-    double x);
-
 /* Convert a number of seconds, int or float, to time_t. */
 PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
     PyObject *obj,
index 9f7ee2d0ed82e88d76b515e5c811f0d87a49a428..37dfabbb0a1f1cebc263014b1a480c2ae63938f1 100644 (file)
@@ -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);