summarylogtreecommitdiffstats
path: root/0003-fix-Build-errors-with-GCC-12.1.0.patch
diff options
context:
space:
mode:
authorKokaKiwi2022-05-28 16:03:37 +0200
committerKokaKiwi2022-05-28 16:03:37 +0200
commit5ace14b2e7614fe49ab0fc69e9c657c8b0bf53cd (patch)
tree20977c693820bd0d3246add01c770382e047e675 /0003-fix-Build-errors-with-GCC-12.1.0.patch
parent0c953d2f57f9ec6a5e32d77efc89ef148f9e67a6 (diff)
downloadaur-5ace14b2e7614fe49ab0fc69e9c657c8b0bf53cd.tar.gz
Update: 1.18.0
Diffstat (limited to '0003-fix-Build-errors-with-GCC-12.1.0.patch')
-rw-r--r--0003-fix-Build-errors-with-GCC-12.1.0.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0003-fix-Build-errors-with-GCC-12.1.0.patch b/0003-fix-Build-errors-with-GCC-12.1.0.patch
new file mode 100644
index 000000000000..68998f5b2b3b
--- /dev/null
+++ b/0003-fix-Build-errors-with-GCC-12.1.0.patch
@@ -0,0 +1,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
+