summaryrefslogtreecommitdiff
path: root/src/parse/lex.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-21 14:21:00 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-21 14:21:00 +0800
commit6411b7c7d220ae9af5e54d0fdae66e4e44faf01f (patch)
tree8fd92fd6424f179036e2e710745fe74d1dbe83a6 /src/parse/lex.cpp
parentdf6c0cf38a0b6f5f7aee8486ea45f7e7cffa6b57 (diff)
downloadmrust-6411b7c7d220ae9af5e54d0fdae66e4e44faf01f.tar.gz
Fix minor lexing and dump issues
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r--src/parse/lex.cpp4
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;