Mercurial > hg > octave-terminal
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 +++ b/liboctave/ChangeLog @@ -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 +++ b/liboctave/lo-utils.cc @@ -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; }