diff options
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************************************************************* |