diff liboctave/mx-inlines.cc @ 4845:a9cfb8b37759

[project @ 2004-04-02 20:12:24 by jwe]
author jwe
date Fri, 02 Apr 2004 20:12:24 +0000
parents d3bd9c04147f
children 9c89c1408c32
line wrap: on
line diff
--- a/liboctave/mx-inlines.cc
+++ b/liboctave/mx-inlines.cc
@@ -503,10 +503,9 @@
   int empty = true; \
  \
   /* If dim is larger then number of dims, return array as is */ \
-  if (dim > dv.length ()) \
+  if (dim >= dv.length ()) \
     { \
       retval = RET_TYPE (*this); \
- \
       return retval; \
     } \
  \
@@ -523,7 +522,6 @@
   if (empty) \
     { \
       retval.resize (dv); \
- \
       return retval; \
     } \
  \
@@ -559,7 +557,6 @@
   if (squeezed) \
     {  \
       retval.resize (dv); \
- \
       return retval; \
     } \
  \