mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user