changeset 8742:d2b06871afac

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 wrap: on
line diff
--- a/liboctave/ChangeLog	Sat Feb 14 07:24:16 2009 +0100
+++ b/liboctave/ChangeLog	Sat Feb 14 07:27:34 2009 +0100
@@ -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	Sat Feb 14 07:24:16 2009 +0100
+++ b/liboctave/Range.cc	Sat Feb 14 07:27:34 2009 +0100
@@ -258,6 +258,8 @@
     mode = (mode == DESCENDING) ? UNSORTED : ASCENDING;
   else
     mode = mode ? mode : ASCENDING;
+
+  return mode;
 }
 
 std::ostream&