From ddd16d76552d4080ffb82c433ebdd846bfc867ef Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 29 Mar 2016 11:55:06 -0500 Subject: [PATCH] Fix for Token::name and token::toString --- libsolidity/parsing/Token.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libsolidity/parsing/Token.cpp b/libsolidity/parsing/Token.cpp index 3812a83fd..df60aa4bc 100644 --- a/libsolidity/parsing/Token.cpp +++ b/libsolidity/parsing/Token.cpp @@ -155,16 +155,15 @@ tuple Token::fromIdentifierOrKeyword(s ) { int n = parseSize(positionX + 1, _literal.end()); if ( - 0 < m && m < 256 && - 0 < n && n < 256 && + m + n > 0 && m + n <= 256 && m % 8 == 0 && n % 8 == 0 ) { if (keyword == Token::UFixed) - return make_tuple(Token::UFixed, m, n); + return make_tuple(Token::UFixedMxN, m, n); else - return make_tuple(Token::Fixed, m, n); + return make_tuple(Token::FixedMxN, m, n); } } }