comparison liboctave/idx-vector.cc @ 942:8fa3c25ab271

[project @ 1994-11-21 18:37:45 by jwe]
author jwe
date Mon, 21 Nov 1994 18:37:45 +0000
parents ba6acc6309ec
children dfe01093f657
comparison
equal deleted inserted replaced
941:c4827d0fe063 942:8fa3c25ab271
219 { 219 {
220 ::error ("%s index %d out of range", rc, min_val+1); 220 ::error ("%s index %d out of range", rc, min_val+1);
221 initialized = 0; 221 initialized = 0;
222 return; 222 return;
223 } 223 }
224 #if 0
225 // Checking max index against size won't work right here unless we
226 // also look at resize on range error, and we have to do that later
227 // on anyway.
228
224 else if (max_val >= z_len) 229 else if (max_val >= z_len)
225 { 230 {
226 ::error ("%s index %d out of range", rc, max_val+1); 231 ::error ("%s index %d out of range", rc, max_val+1);
227 initialized = 0; 232 initialized = 0;
228 return; 233 return;
229 } 234 }
235 #endif
230 236
231 initialized = 1; 237 initialized = 1;
232 } 238 }
233 239
234 void 240 void