add missing return statement
author |
Jaroslav Hajek <highegg@gmail.com> |
date |
Sat, 14 Feb 2009 07:27:34 +0100 |
parents |
008f3985c8c0 |
children |
1bd918cfb6e2 |
files |
liboctave/ChangeLog liboctave/Range.cc |
diffstat |
2 files changed, 3 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -2,6 +2,7 @@
* intNDArray.cc: include mx-inlines.cc.
(intNDArray::sum): Use mx_do_red_op (..., mx_inline_sum).
+ * Range.cc (Range::is_sorted): Add missing return statement.
2009-02-13 Jaroslav Hajek <highegg@gmail.com>
--- a/liboctave/Range.cc
+++ b/liboctave/Range.cc
@@ -258,6 +258,8 @@
mode = (mode == DESCENDING) ? UNSORTED : ASCENDING;
else
mode = mode ? mode : ASCENDING;
+
+ return mode;
}
std::ostream&