]> git.ipfire.org Git - thirdparty/libarchive.git/commit
7zip: Fix Visual Studio compiler warnings (#2182)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Sat, 11 May 2024 16:53:02 +0000 (18:53 +0200)
committerGitHub <noreply@github.com>
Sat, 11 May 2024 16:53:02 +0000 (09:53 -0700)
commitdee8b59108d4b5d5feff14291d9c7c80b9d297bc
tree2bf658995c0a49c7f4355622bfde8e4269042122
parentd517c678b8c0e73537db2b14a2b7b7bf1feefb5f
7zip: Fix Visual Studio compiler warnings (#2182)

The cast in ppmd_read function is safe even on 32 bit systems. It is
called byte for byte which makes it impossible to actually reach
SIZE_MAX on any real world hardware.

Fixes Visual Studio warnings:

warning C4244: '=': conversion from 'uint64_t' to 'size_t', possible
loss of data
warning C4244: 'function': conversion from 'int64_t' to 'size_t',
possible loss of data
libarchive/archive_read_support_format_7zip.c