changeset 14659:97e3d1769be0

Fix missing return statement * DiagArray2.h (DiagArray2::operator()): Add return statement on range-checked compilation branch
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sat, 19 May 2012 00:35:15 -0400
parents 6f21354841bf
children 7925a7d6547b dee1452ca601
files liboctave/DiagArray2.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/DiagArray2.h	Sat May 19 00:29:41 2012 -0400
+++ b/liboctave/DiagArray2.h	Sat May 19 00:35:15 2012 -0400
@@ -127,7 +127,7 @@
   T operator () (octave_idx_type r, octave_idx_type c) const
     {
 #if defined (BOUNDS_CHECKING)
-      checkelem (r, c);
+      return checkelem (r, c);
 #else
       return elem (r, c);
 #endif