aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/value.cpp b/value.cpp
index 90b689b..a0f0acc 100644
--- a/value.cpp
+++ b/value.cpp
@@ -2,7 +2,7 @@
#include <string>
Value::Value(Token& token) {
- if (!token.isString())
+ if (!token.isString()) {
m_type = Value::Type::Integer;
m_intData = std::stoi(token.getLexeme(), nullptr, 10);
} else {