From 70389625c445cd08b5c36d6d2f177b66f95a91e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 8 Mar 2018 22:05:24 +0100 Subject: [PATCH] - 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)); -- 2.44.0