[packages/mysql-workbench] - fix building on x32
baggins
baggins at pld-linux.org
Thu Mar 8 22:05:42 CET 2018
commit 70389625c445cd08b5c36d6d2f177b66f95a91e5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Mar 8 22:05:24 2018 +0100
- fix building on x32
format-string.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/format-string.patch b/format-string.patch
index c73b9ac..1acc038 100644
--- a/format-string.patch
+++ b/format-string.patch
@@ -4,7 +4,7 @@
*/
JsonValue &JsonArray::at(SizeType pos) {
if (pos > _data.size())
-+#ifdef __x86_64__
++#if defined(__x86_64__) && !defined(__ILP32__)
throw std::out_of_range(base::strfmt("Index '%lu' is out of range.", pos));
+#else
+ throw std::out_of_range(base::strfmt("Index '%u' is out of range.", pos));
@@ -16,7 +16,7 @@
*/
const JsonValue &JsonArray::at(SizeType pos) const {
if (pos > _data.size())
-+#ifdef __x86_64__
++#if defined(__x86_64__) && !defined(__ILP32__)
throw std::out_of_range(base::strfmt("Index '%lu' is out of range.", pos));
+#else
+ throw std::out_of_range(base::strfmt("Index '%u' is out of range.", pos));
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql-workbench.git/commitdiff/70389625c445cd08b5c36d6d2f177b66f95a91e5
More information about the pld-cvs-commit
mailing list