mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Misspelling of Endianness (#1609)
### Problem description fix 40 typos ### Implementation description `endianess` => `endianness` Signed-off-by: RoboSchmied <github@roboschmie.de>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <hex/test/tests.hpp>
|
||||
|
||||
TEST_SEQUENCE("32BitIntegerEndianSwap") {
|
||||
TEST_ASSERT(hex::changeEndianess<u32>(0xAABBCCDD, std::endian::big) == 0xDDCCBBAA);
|
||||
TEST_ASSERT(hex::changeEndianness<u32>(0xAABBCCDD, std::endian::big) == 0xDDCCBBAA);
|
||||
|
||||
TEST_SUCCESS();
|
||||
};
|
||||
@@ -12,8 +12,8 @@ TEST_SEQUENCE("64BitFloatEndianSwap") {
|
||||
double floatValue = 1234.5;
|
||||
u64 integerValue = reinterpret_cast<u64 &>(floatValue);
|
||||
|
||||
double swappedFloatValue = hex::changeEndianess(floatValue, std::endian::big);
|
||||
u64 swappedIntegerValue = hex::changeEndianess(integerValue, std::endian::big);
|
||||
double swappedFloatValue = hex::changeEndianness(floatValue, std::endian::big);
|
||||
u64 swappedIntegerValue = hex::changeEndianness(integerValue, std::endian::big);
|
||||
|
||||
TEST_ASSERT(std::memcmp(&floatValue, &integerValue, 8) == 0 && std::memcmp(&swappedFloatValue, &swappedIntegerValue, 8) == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user