Bugfix: no longer treats floats as ints

This commit is contained in:
2025-08-09 19:52:49 +10:00
parent 767cf65016
commit f43f79b869

View File

@@ -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;