From 0806dd227ce57522de07d0a618bd7f3fe93da7fb Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 25 Jul 2015 19:34:28 -0700 Subject: Updates to the Cba data-structure. --- src/misc/vec/vecInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc/vec') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index c84fd01c..2487911a 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -1957,7 +1957,7 @@ static inline void Vec_IntRemapArray( Vec_Int_t * vOld2New, Vec_Int_t * vOld, Ve return; Vec_IntFill( vNew, nNew, 0 ); Vec_IntForEachEntry( vOld2New, iNew, iOld ) - if ( iNew > 0 && iNew < nNew && Vec_IntEntry(vOld, iOld) != 0 ) + if ( iNew > 0 && iNew < nNew && iOld < Vec_IntSize(vOld) && Vec_IntEntry(vOld, iOld) != 0 ) Vec_IntWriteEntry( vNew, iNew, Vec_IntEntry(vOld, iOld) ); } -- cgit v1.2.3