Fix some LGTM errors of "Multiplication result converted to larger type"

This commit is contained in:
Aaron Franke
2021-09-07 23:25:35 -05:00
parent f9aec342dc
commit 7e51e4cb84
12 changed files with 25 additions and 23 deletions

View File

@@ -100,7 +100,7 @@ int zipio_testerror(voidpf opaque, voidpf stream) {
}
voidpf zipio_alloc(voidpf opaque, uInt items, uInt size) {
voidpf ptr = memalloc(items * size);
voidpf ptr = memalloc((size_t)items * size);
memset(ptr, 0, items * size);
return ptr;
}