changeset 17741:f6293489fe88

avoid warnings about casts and gnulib functions * lo-specfun.cc (xgamma): Use C++ style casts and gnulib:: tag for floor function.
author John W. Eaton <jwe@octave.org>
date Wed, 23 Oct 2013 18:27:06 -0400
parents e6ed77b75aec
children 4e225f952885
files liboctave/numeric/lo-specfun.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/numeric/lo-specfun.cc	Wed Oct 23 22:20:06 2013 +0200
+++ b/liboctave/numeric/lo-specfun.cc	Wed Oct 23 18:27:06 2013 -0400
@@ -379,7 +379,7 @@
 #else
       F77_XFCN (xdgamma, XDGAMMA, (x, result));
 #endif
-      if (xisinf (result) && ((int)floor (x) % 2))
+      if (xisinf (result) && (static_cast<int> (gnulib::floor (x)) % 2))
         result = -octave_Inf;
     }
 
@@ -450,7 +450,7 @@
 #else
       F77_XFCN (xgamma, XGAMMA, (x, result));
 #endif
-      if (xisinf (result) && ((int)floor (x) % 2))
+      if (xisinf (result) && (static_cast<int> (gnulib::floor (x)) % 2))
         result = -octave_Float_Inf;
     }