From 93295ae8f8e92d075584d10ac21374f83c43f759 Mon Sep 17 00:00:00 2001 From: RJ Catalano Date: Fri, 18 Mar 2016 15:03:26 -0500 Subject: got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be slight changes to how to flip the rational negative around...still trying to figure it out tests added updated tests odd differences in trying soltest from solc binary, let me know if you can replicate test not working for odd reason fixed test problem with fixed literals...still need a way to log this error broken up the tests, added some, changed some things in types and began compiler work moar tests and prepping for rebuilding much of the types.cpp file further fixing infinite loop still happening but it's somewhere in the fixedPoint methodd fractional bits needed algo improved! Eliminated 2 errors Corrected problems with the previous commit. No infinite loops. Actually appear to have corrected an error --- 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 cbe0c0de..ef817d5d 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 + 1, _literal.end(), ::isdigit) ) { - int n = parseSize(positionX, _literal.end()); + int n = parseSize(positionX + 1, _literal.end()); if ( 0 <= m && m <= 256 && 0 <= n && n <= 256 && -- cgit