Mercurial > octave-nkf
changeset 5420:f608ac74f92c
[project @ 2005-07-25 21:32:51 by jwe]
author | jwe |
---|---|
date | Mon, 25 Jul 2005 21:32:51 +0000 |
parents | cbcd2009c4be |
children | 0f6947621602 |
files | liboctave/ChangeLog liboctave/oct-inttypes.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Mon Jul 25 17:31:47 2005 +0000 +++ b/liboctave/ChangeLog Mon Jul 25 21:32:51 2005 +0000 @@ -1,3 +1,8 @@ +2005-07-25 Erik de Castro Lopo <erikd@zip.com.au> + + * oct-inttypes.h (OCTAVE_S_US_FTR): Compare <= 0 instead of < 0 to + avoid warnings for unsigned types. + 2005-07-07 John W. Eaton <jwe@octave.org> * dSparse.cc (SparseMatrix::factorize): Initialize Numeric to 0.
--- a/liboctave/oct-inttypes.h Mon Jul 25 17:31:47 2005 +0000 +++ b/liboctave/oct-inttypes.h Mon Jul 25 21:32:51 2005 +0000 @@ -175,7 +175,7 @@ inline T2 \ octave_int_fit_to_range<T1, T2> (const T1& x, const T2&, const T2&) \ { \ - return x < 0 ? 0 : x; \ + return x <= 0 ? 0 : x; \ } #define OCTAVE_S_US_FTR_FCNS(T) \