diff liboctave/dRowVector.cc @ 1699:0c6d3b73bf69

[project @ 1996-01-07 02:36:50 by jwe]
author jwe
date Sun, 07 Jan 1996 02:40:17 +0000
parents 1ef83ee34815
children 2ffe49eb95a5
line wrap: on
line diff
--- a/liboctave/dRowVector.cc
+++ b/liboctave/dRowVector.cc
@@ -72,7 +72,7 @@
 RowVector::insert (const RowVector& a, int c)
 {
   int a_len = a.length ();
-  if (c < 0 || c + a_len - 1 > length ())
+  if (c < 0 || c + a_len > length ())
     {
       (*current_liboctave_error_handler) ("range error for insert");
       return *this;