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:
parent
5530aea6a3
commit
2946f30ffc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue