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)); }