aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorRJ Catalano <rcatalano@macsales.com>2016-03-19 04:03:26 +0800
committerVoR0220 <catalanor0220@gmail.com>2016-05-10 00:41:02 +0800
commit93295ae8f8e92d075584d10ac21374f83c43f759 (patch)
treeb87523b2ed6dcfd19b4edae3aa21f02af12e5165 /libsolidity/parsing
parenta1a2eac5fde0cd6f5aed206958434d655f9a194f (diff)
downloaddexon-solidity-93295ae8f8e92d075584d10ac21374f83c43f759.tar.gz
dexon-solidity-93295ae8f8e92d075584d10ac21374f83c43f759.tar.zst
dexon-solidity-93295ae8f8e92d075584d10ac21374f83c43f759.zip
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
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/Token.cpp4
1 files changed, 2 insertions, 2 deletions
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::Value, unsigned int, unsigned int> 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 &&