changeset 852:e4b2cd2ad0a2

[project @ 1994-10-21 04:19:04 by jwe]
author jwe
date Fri, 21 Oct 1994 04:19:04 +0000
parents f08046777694
children c346a0268e31
files liboctave/idx-vector.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/idx-vector.cc	Fri Oct 21 01:21:13 1994 +0000
+++ b/liboctave/idx-vector.cc	Fri Oct 21 04:19:04 1994 +0000
@@ -225,6 +225,12 @@
       initialized = 0;
       return;
     }
+  else if (max_val >= z_len)
+    {
+      ::error ("%s index %d out of range", rc, max_val+1);
+      initialized = 0;
+      return;
+    }
 
   initialized = 1;
 }