mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Update for software defined 128 bit types
This commit is contained in:
@@ -92,7 +92,7 @@ namespace hex::plugin::builtin {
|
||||
std::memcpy(&value, buffer.data(), std::min(sizeof(T), Size));
|
||||
value = hex::changeEndianness(value, Size, endian);
|
||||
if (Size != sizeof(T))
|
||||
value = hex::signExtend(Size * 8, value);
|
||||
value = T(hex::signExtend(Size * 8, value));
|
||||
|
||||
return value;
|
||||
}
|
||||
@@ -280,7 +280,7 @@ namespace hex::plugin::builtin {
|
||||
stringToFloat<long double>
|
||||
);
|
||||
|
||||
ContentRegistry::DataInspector::add("hex.builtin.inspector.sleb128", 1, (sizeof(i128) * 8 / 7) + 1,
|
||||
ContentRegistry::DataInspector::add("hex.builtin.inspector.sleb128", 1, (16 * 8 / 7) + 1,
|
||||
[](auto buffer, auto endian, auto style) {
|
||||
std::ignore = endian;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user