From 13e5c136953eb2d36e8db3dfa59b5c93d744ce1a Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 2 Aug 2023 17:45:17 +0200 Subject: [PATCH] Fix functional change in commit 905bfacf445210b99dd56c7752c35825125c6d2b --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index f496c699..163a116e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -321,7 +321,7 @@ upx_off_t OutputFile::seek(upx_off_t off, int whence) { void OutputFile::set_extent(upx_off_t offset, upx_off_t length) { super::set_extent(offset, length); bytes_written = 0; - if (0 == offset && ~(upx_off_t) 0 == length) { + if (0 == offset && 0xffffffffLL == length) { if (::fstat(_fd, &st) != 0) throwIOException(_name, errno); _length = st.st_size - offset;