diff options
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r-- | src/parse/lex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index 78d2aa7e..d09bc2d8 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -311,7 +311,7 @@ Token Lexer::getTokenInt() } else { while( isdigit(ch) ) { - val *= val * 10; + val *= 10; val += ch - '0'; ch = this->getc(); } @@ -703,7 +703,7 @@ SERIALISE_TYPE_S(Token, { os << "\"" << tok.str() << "\""; break; case TOK_INTEGER: - os << tok.intval(); + os << ":" << tok.intval(); break; default: break; |