From 8d69ff5826d9c12f0f181445ad6f34a7c28c9a80 Mon Sep 17 00:00:00 2001 From: Uleat Date: Sun, 9 Sep 2018 18:52:30 -0400 Subject: [PATCH] Fix 2 for linux compile failure --- common/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/database.cpp b/common/database.cpp index b6c752dd1..2ec4675b3 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -2121,7 +2121,7 @@ int Database::CountInvSnapshots() { auto row = results.begin(); int64 count = atoll(row[0]); - if (count > INT_MAX) + if (count > 2147483647) return -2; if (count < 0) return -3;