changeset 20926:5df1d099e56d

avoid warning about gnulib::floor * utils.cc (octave_sleep): Call gnulib::floor, not std::floor.
author John W. Eaton <jwe@octave.org>
date Thu, 17 Dec 2015 11:38:40 -0500
parents 667861ffffab
children 1da6c81e6486
files libinterp/corefcn/utils.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc	Thu Dec 17 16:19:51 2015 +0100
+++ b/libinterp/corefcn/utils.cc	Thu Dec 17 11:38:40 2015 -0500
@@ -1359,13 +1359,12 @@
     return;
 
   double fraction = std::modf (seconds, &seconds);
-  fraction = std::floor (fraction * 1000000000); // nanoseconds
+  fraction = gnulib::floor (fraction * 1000000000); // nanoseconds
 
   time_t sec = ((seconds > std::numeric_limits<time_t>::max ())
                 ? std::numeric_limits<time_t>::max ()
                 : static_cast<time_t> (seconds));
 
-  // call GNULIB POSIX function
   struct timespec delay = { sec, static_cast<long> (fraction) };
   struct timespec remaining;
   gnulib::nanosleep (&delay, &remaining);