From 01569b8f5f2394c534c3aba7276caf22493fce82 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 5 Mar 2019 15:57:50 -0800 Subject: Fixing some warnings by adding cast from 'int' to 'size_t' in memset, memcpy, etc. --- src/opt/dau/dauDsd2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/opt/dau/dauDsd2.c') diff --git a/src/opt/dau/dauDsd2.c b/src/opt/dau/dauDsd2.c index cf7dea0b..69c91a09 100644 --- a/src/opt/dau/dauDsd2.c +++ b/src/opt/dau/dauDsd2.c @@ -524,9 +524,9 @@ word Dua_DsdRangeVars( word * pTruth, int nVars, int iVar, int jVar, int fPerfor pCof0 = pCof1 = NULL; for ( Mint = 0; Mint < nMints; Mint++, iWord += nWordsF ) { - if ( !pCof0 || !memcmp(pCof0, pTruth + iWord, nBytes) ) + if ( !pCof0 || !memcmp(pCof0, pTruth + iWord, (size_t)nBytes) ) pCof0 = pTruth + iWord; - else if ( !pCof1 || !memcmp(pCof1, pTruth + iWord, nBytes) ) + else if ( !pCof1 || !memcmp(pCof1, pTruth + iWord, (size_t)nBytes) ) { pCof1 = pTruth + iWord; MaskOne |= ((word)1) << Mint; @@ -541,8 +541,8 @@ word Dua_DsdRangeVars( word * pTruth, int nVars, int iVar, int jVar, int fPerfor if ( fPerform ) { assert( pCof0 && pCof1 ); - memcpy( pTruth + (2 * Part + 0) * nWordsF, pCof0, nBytes ); - memcpy( pTruth + (2 * Part + 1) * nWordsF, pCof1, nBytes ); + memcpy( pTruth + (2 * Part + 0) * nWordsF, pCof0, (size_t)nBytes ); + memcpy( pTruth + (2 * Part + 1) * nWordsF, pCof1, (size_t)nBytes ); } } } -- cgit v1.2.3