From 91fda50922865c1dbeed34652c30ac89f5edfadf Mon Sep 17 00:00:00 2001 From: RJ Catalano Date: Fri, 11 Mar 2016 17:53:54 -0600 Subject: fixed problem with var...probably a conversion problem for fixed in size capabilities adding fixed type tests Removing bitshift and regrouping fixed type tests together --- libsolidity/parsing/Token.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsolidity/parsing/Token.cpp') diff --git a/libsolidity/parsing/Token.cpp b/libsolidity/parsing/Token.cpp index d3786524..cbe0c0de 100644 --- a/libsolidity/parsing/Token.cpp +++ b/libsolidity/parsing/Token.cpp @@ -153,9 +153,9 @@ tuple Token::fromIdentifierOrKeyword(s positionM < positionX && positionX < _literal.end() && *positionX == 'x' && - all_of(positionX++, _literal.end(), ::isdigit) + all_of(++positionX, _literal.end(), ::isdigit) ) { - int n = parseSize(positionX + 1, _literal.end()); + int n = parseSize(positionX, _literal.end()); if ( 0 <= m && m <= 256 && 0 <= n && n <= 256 && -- cgit v1.2.3