mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
build: Make ImHex fully compile with warnings enabled in MSVC
This commit is contained in:
@@ -91,7 +91,7 @@ namespace hex::plugin::builtin {
|
||||
T value = 0x00;
|
||||
std::memcpy(&value, buffer.data(), std::min(sizeof(T), Size));
|
||||
value = hex::changeEndianness(value, Size, endian);
|
||||
if (Size != sizeof(T))
|
||||
if constexpr (Size != sizeof(T))
|
||||
value = T(hex::signExtend(Size * 8, value));
|
||||
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user