Fix Cppcheck error message
This commit is contained in:
parent
29feaa5a51
commit
277e0f1a8f
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue