From 6411b7c7d220ae9af5e54d0fdae66e4e44faf01f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 21 Mar 2015 14:21:00 +0800 Subject: Fix minor lexing and dump issues --- src/parse/lex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse/lex.cpp') 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; -- cgit v1.2.3