summaryrefslogtreecommitdiffstats
path: root/src/opt/dau/dauDsd2.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-03-05 15:57:50 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2019-03-05 15:57:50 -0800
commit01569b8f5f2394c534c3aba7276caf22493fce82 (patch)
tree40d52cf2d4d76c1e1e5bf6443c34836627f4e5f9 /src/opt/dau/dauDsd2.c
parentb632c8496cc48bb8be0851ea2c183f94c201f791 (diff)
downloadabc-01569b8f5f2394c534c3aba7276caf22493fce82.tar.gz
abc-01569b8f5f2394c534c3aba7276caf22493fce82.tar.bz2
abc-01569b8f5f2394c534c3aba7276caf22493fce82.zip
Fixing some warnings by adding cast from 'int' to 'size_t' in memset, memcpy, etc.
Diffstat (limited to 'src/opt/dau/dauDsd2.c')
-rw-r--r--src/opt/dau/dauDsd2.c8
1 files changed, 4 insertions, 4 deletions
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 );
}
}
}