src: introduce upx::max and friends; updates for clang-19 git snapshot

This commit is contained in:
Markus F.X.J. Oberhumer
2024-05-15 14:06:05 +02:00
parent 9e0f16a629
commit 40b7e24fcc
21 changed files with 254 additions and 159 deletions
+11 -4
View File
@@ -81,10 +81,17 @@ public:
static constexpr unsigned MAX_FILTERS = 16; // for getFilters()
protected:
InputFile *const fi; // reference
union { // unnamed union
const upx_int64_t file_size; // must get set by constructor
const upx_uint64_t file_size_u; // (explicitly unsigned to avoid -Wsign-compare casts)
InputFile *const fi; // reference
// multiple names for "file_size" to avoid casts
union { // unnamed union
const upx_int64_t file_size; // must get set by constructor
const upx_uint64_t file_size_u;
const upx_int64_t file_size_i64;
const upx_uint64_t file_size_u64;
};
union { // unnamed union
const upx_int32_t file_size_i32;
const upx_uint32_t file_size_u32;
};
PackHeader ph; // must be filled by canUnpack(); also used by UiPacker
};