Fix cpplint warning in util/safe_arith.cpp
This commit is contained in:
parent
85a92e8888
commit
01339a93a3
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ Author: Leonardo de Moura
|
|||
|
||||
namespace lean {
|
||||
void check_int_overflow(long long n) {
|
||||
static_assert(sizeof(long long) > sizeof(int),
|
||||
static_assert(sizeof(n) > sizeof(int), // NOLINT
|
||||
"sizeof(long long) is not bigger than sizeof(int).");
|
||||
if (n < std::numeric_limits<int>::min())
|
||||
throw exception("integer underflow");
|
||||
|
|
Loading…
Reference in a new issue