diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 16:26:42 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 16:26:42 -0800 |
commit | 3cce04c62daf75aaf156246b6fc0498f0106f76d (patch) | |
tree | 4f56e7fd2acd09c5e6dd2a199612f73fab14b98a /src/misc/vec/vecMem.h | |
parent | f657d9a7e6aedbb33063d050bc65d8eb3c95098b (diff) | |
download | abc-3cce04c62daf75aaf156246b6fc0498f0106f76d.tar.gz abc-3cce04c62daf75aaf156246b6fc0498f0106f76d.tar.bz2 abc-3cce04c62daf75aaf156246b6fc0498f0106f76d.zip |
Fixing some more warnings by adding cast from 'int' to 'size_t'.
Diffstat (limited to 'src/misc/vec/vecMem.h')
-rw-r--r-- | src/misc/vec/vecMem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/vec/vecMem.h b/src/misc/vec/vecMem.h index c2bd06f0..ef2d2af7 100644 --- a/src/misc/vec/vecMem.h +++ b/src/misc/vec/vecMem.h @@ -236,12 +236,12 @@ static inline word * Vec_MemGetEntry( Vec_Mem_t * p, int i ) static inline void Vec_MemSetEntry( Vec_Mem_t * p, int i, word * pEntry ) { word * pPlace = Vec_MemGetEntry( p, i ); - memmove( pPlace, pEntry, sizeof(word) * p->nEntrySize ); + memmove( pPlace, pEntry, sizeof(word) * (size_t)p->nEntrySize ); } static inline void Vec_MemPush( Vec_Mem_t * p, word * pEntry ) { word * pPlace = Vec_MemGetEntry( p, p->nEntries ); - memmove( pPlace, pEntry, sizeof(word) * p->nEntrySize ); + memmove( pPlace, pEntry, sizeof(word) * (size_t)p->nEntrySize ); } /**Function************************************************************* |