diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 15:57:50 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 15:57:50 -0800 |
commit | 01569b8f5f2394c534c3aba7276caf22493fce82 (patch) | |
tree | 40d52cf2d4d76c1e1e5bf6443c34836627f4e5f9 /src/bool/lucky/luckySwapIJ.c | |
parent | b632c8496cc48bb8be0851ea2c183f94c201f791 (diff) | |
download | abc-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/bool/lucky/luckySwapIJ.c')
-rw-r--r-- | src/bool/lucky/luckySwapIJ.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bool/lucky/luckySwapIJ.c b/src/bool/lucky/luckySwapIJ.c index 44144564..fcedbb93 100644 --- a/src/bool/lucky/luckySwapIJ.c +++ b/src/bool/lucky/luckySwapIJ.c @@ -80,9 +80,9 @@ void swap_ij_case3( word* f,int totalVars, int i, int j) for(y=wwj/2; y<WORDS_IN_TT; y+=wwj) for(x=y-shift; x<y; x+=wwi) { - memcpy(temp,&f[x],SizeOfBlock); - memcpy(&f[x],&f[x+shift],SizeOfBlock); - memcpy(&f[x+shift],temp,SizeOfBlock); + memcpy(temp,&f[x],(size_t)SizeOfBlock); + memcpy(&f[x],&f[x+shift],(size_t)SizeOfBlock); + memcpy(&f[x+shift],temp,(size_t)SizeOfBlock); } } void swap_ij( word* f,int totalVars, int varI, int varJ) |