From 7e51e4cb84aeb3c191289752e0e6b92facd8f7f6 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 7 Sep 2021 23:25:35 -0500 Subject: Fix some LGTM errors of "Multiplication result converted to larger type" --- core/io/zip_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io/zip_io.cpp') diff --git a/core/io/zip_io.cpp b/core/io/zip_io.cpp index fb4c76aa7a..24808cc8d6 100644 --- a/core/io/zip_io.cpp +++ b/core/io/zip_io.cpp @@ -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; } -- cgit v1.2.3