aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorVoR0220 <catalanor0220@gmail.com>2016-04-13 01:36:34 +0800
committerVoR0220 <catalanor0220@gmail.com>2016-05-10 00:41:03 +0800
commitbfc238c8d11e118443d373d819deeada9fe1ea3b (patch)
tree54076cd985d031a5a813946a678a4e6696af2117 /libsolidity/parsing
parent5bddb2d6ffdd8a2c02a61cc304f2743f55dcb5f9 (diff)
downloaddexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.gz
dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.tar.zst
dexon-solidity-bfc238c8d11e118443d373d819deeada9fe1ea3b.zip
updated algorithm for bit finding...now to figure out literal value
tiny fixups changed location of the check got rid of extra space and fixed a couple of things added binary results bits change back literal value
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/Token.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Token.cpp b/libsolidity/parsing/Token.cpp
index ef817d5d..0ab97988 100644
--- a/libsolidity/parsing/Token.cpp
+++ b/libsolidity/parsing/Token.cpp
@@ -158,7 +158,7 @@ tuple<Token::Value, unsigned int, unsigned int> Token::fromIdentifierOrKeyword(s
int n = parseSize(positionX + 1, _literal.end());
if (
0 <= m && m <= 256 &&
- 0 <= n && n <= 256 &&
+ 8 <= n && n <= 256 &&
m + n > 0 &&
m + n <= 256 &&
m % 8 == 0 &&