diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 4ce100b..53b1d3b 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -45,7 +45,7 @@ namespace Parser { switch (current.toktype) { case NUMBER: { long double v = stoul(current.toktext); - if (i > 0 && lexed[i - 1].toktype == HYPHEN) v = -v; + if (i != 0 && lexed[i - 1].toktype == HYPHEN) v = -v; types::Integer::precision_type p = 0; if (nextAre({DOT, NUMBER})) { i += 2;