changeset 11013:63f79f798a14

fix small typos in new tests
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 22 Sep 2010 09:04:56 +0200
parents 30b9b0a507f1
children 92bb25c0da9e
files liboctave/ChangeLog liboctave/lo-utils.cc
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Sep 22 07:57:33 2010 +0200
+++ b/liboctave/ChangeLog	Wed Sep 22 09:04:56 2010 +0200
@@ -1,3 +1,7 @@
+2010-09-22  Jaroslav Hajek  <highegg@gmail.com>
+
+	* lo-utils.cc (xis_int_or_inf_or_nan): Fix typos.
+
 2010-09-21  Jaroslav Hajek  <highegg@gmail.com>
 
 	* Array.h (Array::test, Array::test_all, Array::test_any): New
--- a/liboctave/lo-utils.cc	Wed Sep 22 07:57:33 2010 +0200
+++ b/liboctave/lo-utils.cc	Wed Sep 22 09:04:56 2010 +0200
@@ -113,7 +113,7 @@
 }
 
 bool xis_int_or_inf_or_nan (double x)
-{ return ! (xisnan (x) || D_NINT (x) == x); }
+{ return xisnan (x) || D_NINT (x) == x; }
 
 bool xis_one_or_zero (double x)
 { return x == 0 || x == 1; }
@@ -125,7 +125,7 @@
 { return (! (xisnan (x) || xisinf (x)) && fabs (x) > FLT_MAX); }
 
 bool xis_int_or_inf_or_nan (float x)
-{ return ! (xisnan (x) || D_NINT (x) == x); }
+{ return xisnan (x) || D_NINT (x) == x; }
 
 bool xis_one_or_zero (float x)
 { return x == 0 || x == 1; }