diff --git a/lib/libimhex/source/ui/imgui_imhex_extensions.cpp b/lib/libimhex/source/ui/imgui_imhex_extensions.cpp index b7e57d236..48de49aff 100644 --- a/lib/libimhex/source/ui/imgui_imhex_extensions.cpp +++ b/lib/libimhex/source/ui/imgui_imhex_extensions.cpp @@ -899,7 +899,7 @@ namespace ImGuiExt { } bool InputHexadecimal(const char *label, u32 *value, ImGuiInputTextFlags flags) { - return InputIntegerPrefix(label, "0x", value, ImGuiDataType_U32, "%lX", flags | ImGuiInputTextFlags_CharsHexadecimal); + return InputIntegerPrefix(label, "0x", value, ImGuiDataType_U32, "%X", flags | ImGuiInputTextFlags_CharsHexadecimal); } bool InputHexadecimal(const char *label, u64 *value, ImGuiInputTextFlags flags) { diff --git a/plugins/hashes/source/content/hashes.cpp b/plugins/hashes/source/content/hashes.cpp index 19b041b4b..a551aaec9 100644 --- a/plugins/hashes/source/content/hashes.cpp +++ b/plugins/hashes/source/content/hashes.cpp @@ -219,9 +219,9 @@ namespace hex::plugin::hashes { size_t m_selectedCrc = 0; u32 m_width = 3; - u32 m_polynomial = 0; - u32 m_initialValue = 0; - u32 m_xorOut = 0; + u64 m_polynomial = 0; + u64 m_initialValue = 0; + u64 m_xorOut = 0; bool m_reflectIn = false, m_reflectOut = false; }; @@ -731,4 +731,4 @@ namespace hex::plugin::hashes { ContentRegistry::Hashes::add(HashFactory::Hash128::CreateMurmurHash3_x64_128); } -} \ No newline at end of file +}