Fix Cppcheck error message

This commit is contained in:
Daniel Marjamäki 2018-10-20 15:28:34 +02:00
parent 29feaa5a51
commit 277e0f1a8f
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "config.h" #include "config.h"
#include <climits>
#include <string> #include <string>
/// @addtogroup Core /// @addtogroup Core
@ -41,7 +42,7 @@ namespace cppcheck {
private: private:
static long long min_value(int bit) { static long long min_value(int bit) {
if (bit >= 64) if (bit >= 64)
return 1LL << 63; return LLONG_MIN;
return -(1LL << (bit-1)); return -(1LL << (bit-1));
} }