From f43f79b869bb053e67125c7358e3a6c45ed5afab Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 9 Aug 2025 19:52:49 +1000 Subject: [PATCH] Bugfix: no longer treats floats as ints --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index e211755..794dace 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -182,6 +182,7 @@ void error(string in, int exitc = 1) { bool isInt(string in) { try { stoi(in); + if (stod(in) != stoi(in)) return false; return true; } catch (...) { return false;