v0_8: fix comparison in previous patch for pr1745132

If I had remembered to test the passing case I would have noticed
the comparison was wrong.
This commit is contained in:
Cary R 2007-10-26 17:05:34 -07:00 committed by Stephen Williams
parent 5530aea6a3
commit 2946f30ffc
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ vvp_ipoint_t vvp_fvector_get(vvp_fvector_t v, unsigned i)
{
if (!v->size)
return ipoint_index(v->cont.iptr, i);
if (v->size >= i) {
if (v->size <= i) {
fprintf(stderr, "ERROR: index value (%d) must be less than "
"element size (%d).\n", i, v->size);
assert(0);