blob: 68998f5b2b3ba392af7d62a9b7242969e80518c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 310c0d349261d704614f4ce9c9e72966bcadf10b Mon Sep 17 00:00:00 2001
From: KokaKiwi <kokakiwi+git@kokakiwi.net>
Date: Tue, 24 May 2022 15:27:25 +0200
Subject: [PATCH 3/3] fix: Build errors with GCC 12.1.0
---
lib/libimhex/source/helpers/encoding_file.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libimhex/source/helpers/encoding_file.cpp b/lib/libimhex/source/helpers/encoding_file.cpp
index 410908e7..cee88da1 100644
--- a/lib/libimhex/source/helpers/encoding_file.cpp
+++ b/lib/libimhex/source/helpers/encoding_file.cpp
@@ -54,11 +54,11 @@ namespace hex {
if (fromBytes.empty()) continue;
if (!this->m_mapping.contains(fromBytes.size()))
- this->m_mapping.insert({ fromBytes.size(), {} });
+ this->m_mapping.insert({ (u32)fromBytes.size(), {} });
this->m_mapping[fromBytes.size()].insert({ fromBytes, to });
this->m_longestSequence = std::max(this->m_longestSequence, fromBytes.size());
}
}
-}
\ No newline at end of file
+}
--
2.36.1
|