# HG changeset patch # User jwe # Date 1122327171 0 # Node ID f608ac74f92ce2639e742693b1af74f49529b51c # Parent cbcd2009c4be9254d3a22df24a6054facc004e53 [project @ 2005-07-25 21:32:51 by jwe] diff -r cbcd2009c4be -r f608ac74f92c liboctave/ChangeLog --- 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 + + * oct-inttypes.h (OCTAVE_S_US_FTR): Compare <= 0 instead of < 0 to + avoid warnings for unsigned types. + 2005-07-07 John W. Eaton * dSparse.cc (SparseMatrix::factorize): Initialize Numeric to 0. diff -r cbcd2009c4be -r f608ac74f92c liboctave/oct-inttypes.h --- 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 (const T1& x, const T2&, const T2&) \ { \ - return x < 0 ? 0 : x; \ + return x <= 0 ? 0 : x; \ } #define OCTAVE_S_US_FTR_FCNS(T) \