# HG changeset patch # User Jaroslav Hajek # Date 1285139096 -7200 # Node ID 63f79f798a14dfdb15c7d39919f7668317d43e85 # Parent 30b9b0a507f1dddb5a4276ecea657f6cf5311517 fix small typos in new tests diff -r 30b9b0a507f1 -r 63f79f798a14 liboctave/ChangeLog --- 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 + + * lo-utils.cc (xis_int_or_inf_or_nan): Fix typos. + 2010-09-21 Jaroslav Hajek * Array.h (Array::test, Array::test_all, Array::test_any): New diff -r 30b9b0a507f1 -r 63f79f798a14 liboctave/lo-utils.cc --- 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; }