From bcba1a7130c0f4aed42a0814f1570486647843b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 9 Jan 2016 10:26:48 +0100 Subject: [PATCH] platforms: set bit values when --platform= is used --- lib/settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/settings.cpp b/lib/settings.cpp index 1e021d8cb..a52f6cf8f 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -314,5 +314,10 @@ bool Settings::platformFile(const std::string &filename) } } + short_bit = char_bit * sizeof_short; + int_bit = char_bit * sizeof_int; + long_bit = char_bit * sizeof_long; + long_long_bit = char_bit * sizeof_long_long; + return true; }