diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2021-11-02 20:31:32 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2021-11-02 20:31:32 -0700 |
commit | 18b4e8beef9ef330ef336f7070154858e461c916 (patch) | |
tree | 9a61da54a1e0e7e630afba8fd4c0e106e19f4043 | |
parent | a80a91e45f5edf59fb7475ae1a461ba3602c6731 (diff) | |
download | abc-18b4e8beef9ef330ef336f7070154858e461c916.tar.gz abc-18b4e8beef9ef330ef336f7070154858e461c916.tar.bz2 abc-18b4e8beef9ef330ef336f7070154858e461c916.zip |
Bug fix and new procedures.
-rw-r--r-- | src/misc/vec/vecInt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 83122796..c15369d2 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -1953,9 +1953,9 @@ static inline void Vec_IntTwoMerge1( Vec_Int_t * vArr1, Vec_Int_t * vArr2 ) if ( *pBeg1 == *pBeg2 ) *pBeg++ = *pBeg1++, pBeg2++; else if ( *pBeg1 < *pBeg2 ) - *pBeg1++; + pBeg1++; else - *pBeg2++; + pBeg2++; } assert( vArr1->nSize >= pBeg - vArr1->pArray ); vArr1->nSize = pBeg - vArr1->pArray; @@ -1982,11 +1982,11 @@ static inline void Vec_IntTwoRemove1( Vec_Int_t * vArr1, Vec_Int_t * vArr2 ) while ( pBeg1 < pEnd1 && pBeg2 < pEnd2 ) { if ( *pBeg1 == *pBeg2 ) - *pBeg1++, pBeg2++; + pBeg1++, pBeg2++; else if ( *pBeg1 < *pBeg2 ) *pBeg++ = *pBeg1++; else - *pBeg2++; + pBeg2++; } while ( pBeg1 < pEnd1 ) *pBeg++ = *pBeg1++; |