From 2946f30ffc1a2982010a9786b8d37646f8a52166 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 26 Oct 2007 17:05:34 -0700 Subject: [PATCH] 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. --- vvp/fvectors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/fvectors.cc b/vvp/fvectors.cc index 87739da1f..07ecc4905 100644 --- a/vvp/fvectors.cc +++ b/vvp/fvectors.cc @@ -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);