Mercurial > hg > octave-lyh
diff liboctave/Range.cc @ 6490:0ad7655cf2bc
[project @ 2007-04-05 02:44:34 by jwe]
author | jwe |
---|---|
date | Thu, 05 Apr 2007 02:44:35 +0000 |
parents | a58b5981ab65 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/liboctave/Range.cc +++ b/liboctave/Range.cc @@ -26,10 +26,10 @@ #endif #include <cfloat> -#include <climits> #include <cmath> #include <iostream> +#include <limits> #include "Range.h" #include "lo-mappers.h" @@ -287,7 +287,7 @@ n_elt++; } - retval = (n_elt >= INT_MAX - 1) ? -1 : n_elt; + retval = (n_elt >= std::numeric_limits<octave_idx_type>::max () - 1) ? -1 : n_elt; } return retval;