Revert previous commit

This commit is contained in:
Stephen F. Booth
2024-12-07 23:35:21 -06:00
parent 69c4f99e3b
commit d89c98f733

View File

@ -226,22 +226,19 @@ namespace {
if constexpr (std::is_same_v<T, uint16_t>) {
if(big != system_big)
value = Utils::byteSwap(static_cast<unsigned short>(value));
return value;
}
else if constexpr (std::is_same_v<T, uint32_t>) {
if(big != system_big)
value = Utils::byteSwap(static_cast<unsigned int>(value));
return value;
}
else if constexpr (std::is_same_v<T, uint64_t>) {
if(big != system_big)
value = Utils::byteSwap(static_cast<unsigned long long>(value));
return value;
}
else
static_assert(false, "Invalid typename T");
return 0;
return value;
}
uint64_t read_uint_big64(void *p, uintptr_t n) noexcept