Pacify clang-tidy

This commit is contained in:
John Reiser
2023-07-26 17:21:39 -07:00
committed by Markus F.X.J. Oberhumer
parent 053e95033f
commit 905bfacf44
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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) ~0u == length) {
if (0 == offset && ~(upx_off_t) 0 == length) {
if (::fstat(_fd, &st) != 0)
throwIOException(_name, errno);
_length = st.st_size - offset;