summarylogtreecommitdiffstats
path: root/0003-fix-Build-errors-with-GCC-12.1.0.patch
blob: f11b597266c43029d5b5e58bfa5b54a633d3b3b6 (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 ca88340ab05fd46956e706a5c18000bdcaf27278 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/4] 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