aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorRJ Catalano <rcatalano@macsales.com>2016-03-12 07:53:54 +0800
committerVoR0220 <catalanor0220@gmail.com>2016-05-10 00:41:02 +0800
commit91fda50922865c1dbeed34652c30ac89f5edfadf (patch)
treee908f41e77eab2f95b84a6750c4d6df31b5c8123 /libsolidity
parentdff1a26f55adc54ccfddfa9d2e87f1dab719d8ca (diff)
downloaddexon-solidity-91fda50922865c1dbeed34652c30ac89f5edfadf.tar.gz
dexon-solidity-91fda50922865c1dbeed34652c30ac89f5edfadf.tar.zst
dexon-solidity-91fda50922865c1dbeed34652c30ac89f5edfadf.zip
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
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp2
-rw-r--r--libsolidity/parsing/Token.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 577838fb..a0915df9 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -469,7 +469,7 @@ bool ConstantNumberType::isValidLiteral(Literal const& _literal)
{
//problem here. If the first digit is a 0 in the string, it won't
//turn it into a integer...Using find if not to count the leading 0s.
-
+
auto leadingZeroes = find_if_not(
radixPoint + 1,
_literal.value().end(),
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::Value, unsigned int, unsigned int> 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 &&