1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Build error due to mismatching types

This commit is contained in:
WerWolv 2024-01-27 16:56:18 +01:00
parent 61048757e6
commit d2a26017d7

View File

@ -102,7 +102,7 @@ namespace hex {
return { ".", 1 };
}
size_t EncodingFile::getEncodingLengthFor(std::span<u8> buffer) const {
u64 EncodingFile::getEncodingLengthFor(std::span<u8> buffer) const {
for (auto riter = m_mapping->crbegin(); riter != m_mapping->crend(); ++riter) {
const auto &[size, mapping] = *riter;
@ -144,7 +144,7 @@ namespace hex {
if (!m_mapping->contains(fromBytes.size()))
m_mapping->insert({ fromBytes.size(), {} });
auto keySize = fromBytes.size();
u64 keySize = fromBytes.size();
(*m_mapping)[keySize].insert({ std::move(fromBytes), to });
m_longestSequence = std::max(m_longestSequence, keySize);