From 277e0f1a8fced5134cf14509129e4bdfc2c5d84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 20 Oct 2018 15:28:34 +0200 Subject: [PATCH] Fix Cppcheck error message --- lib/platform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/platform.h b/lib/platform.h index 01a0ae247..2a1fbc44e 100644 --- a/lib/platform.h +++ b/lib/platform.h @@ -23,6 +23,7 @@ #include "config.h" +#include #include /// @addtogroup Core @@ -41,7 +42,7 @@ namespace cppcheck { private: static long long min_value(int bit) { if (bit >= 64) - return 1LL << 63; + return LLONG_MIN; return -(1LL << (bit-1)); }