1
0
mirror of synced 2025-01-25 15:53:43 +01:00

fix: CRC64 parameters being limited to 32bit (#1975)

This addresses #1974
This commit is contained in:
BobSmun 2024-12-01 01:35:03 +08:00 committed by GitHub
parent 01af2f364c
commit 0ff1bb392c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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<HashWithKey>(HashFactory::Hash128::CreateMurmurHash3_x64_128);
}
}
}