diff --git a/cpp/third_party/zlib-1.2.13/zutil.c b/cpp/third_party/zlib-1.2.13/zutil.c index 9543ae825..34129b578 100644 --- a/cpp/third_party/zlib-1.2.13/zutil.c +++ b/cpp/third_party/zlib-1.2.13/zutil.c @@ -310,7 +310,7 @@ voidpf ZLIB_INTERNAL zcalloc(opaque, items, size) unsigned size; { (void)opaque; - return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : + return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * size) : (voidpf)calloc(items, size); }