# HG changeset patch # User jwe # Date 813194907 0 # Node ID d1ddf54a79c2960f7b1c11f44b56a0557286b925 # Parent 8f63ee44726ca8fff4d69b8c4f90276ad5e790b9 [project @ 1995-10-08 23:28:05 by jwe] diff --git a/liboctave/idx-vector.cc b/liboctave/idx-vector.cc --- a/liboctave/idx-vector.cc +++ b/liboctave/idx-vector.cc @@ -273,12 +273,6 @@ } } -static inline int -intcmp (int *i, int *j) -{ - return (*i - *j); -} - int idx_vector::checkelem (int n) const { @@ -291,6 +285,12 @@ return elem (n); } +static inline int +intcmp (int *i, int *j) +{ + return (*i - *j); +} + void idx_vector::sort (void) { diff --git a/liboctave/idx-vector.h b/liboctave/idx-vector.h --- a/liboctave/idx-vector.h +++ b/liboctave/idx-vector.h @@ -67,7 +67,7 @@ int idx_vector::length (void) const { return len; } int idx_vector::elem (int n) const { return data[n]; } - + int idx_vector::checkelem (int n) const; int idx_vector::operator () (int n) const { return checkelem (n); } int idx_vector::max (void) const { return max_val; }