From 8a7a4680e0489ece8f8512d034bcf3c81afaf868 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 19 Jul 2021 22:34:00 -0700 Subject: [PATCH] :lock: static_assert for safety --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 6fe3cc6..220c79a 100644 --- a/main.cpp +++ b/main.cpp @@ -29,6 +29,7 @@ void SaveSig(int s) int main(int argc, char **argv) { { + static_assert(MAX_LOG_SIZE >= 0); if (argc == 1) { std::ofstream users_save(users_location, std::ios::out | std::ios::binary);