🔒 static_assert for safety

This commit is contained in:
EntireTwix 2021-07-19 22:34:00 -07:00
parent 72864e6c18
commit 8a7a4680e0

View file

@ -29,6 +29,7 @@ void SaveSig(int s)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
{ {
static_assert(MAX_LOG_SIZE >= 0);
if (argc == 1) if (argc == 1)
{ {
std::ofstream users_save(users_location, std::ios::out | std::ios::binary); std::ofstream users_save(users_location, std::ios::out | std::ios::binary);