Mercurial > octave-nkf
diff liboctave/Array.cc @ 7463:2467639bd8c0
eliminate UNDEFINED sort mode
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Feb 2008 16:00:16 -0500 |
parents | d98dea7d16b0 |
children | 93826ba0d078 |
line wrap: on
line diff
--- a/liboctave/Array.cc Fri Feb 08 12:30:39 2008 +0100 +++ b/liboctave/Array.cc Fri Feb 08 16:00:16 2008 -0500 @@ -2498,6 +2498,8 @@ lsort.set_compare (ascending_compare); else if (mode == DESCENDING) lsort.set_compare (descending_compare); + else + abort (); if (stride == 1) { @@ -2566,6 +2568,8 @@ indexed_sort.set_compare (ascending_compare); else if (mode == DESCENDING) indexed_sort.set_compare (descending_compare); + else + abort (); OCTAVE_LOCAL_BUFFER (vec_index<T> *, vi, ns); OCTAVE_LOCAL_BUFFER (vec_index<T>, vix, ns);