diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-08 19:08:22 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-08 19:53:25 +0800 |
commit | 05d36074d17832060b073b2f9920c0918b0987d8 (patch) | |
tree | 249a689adf6e96e19b8ecfab328b7ea1826db038 /Types.cpp | |
parent | e7aa5f079a9c49e6e34667c2451aac8d8f6f5100 (diff) | |
download | dexon-solidity-05d36074d17832060b073b2f9920c0918b0987d8.tar.gz dexon-solidity-05d36074d17832060b073b2f9920c0918b0987d8.tar.zst dexon-solidity-05d36074d17832060b073b2f9920c0918b0987d8.zip |
removed byte0 keyword
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -121,7 +121,7 @@ TypePointer Type::fromElementaryTypeName(Token::Value _typeToken) { int offset = _typeToken - Token::Int; int bytes = offset % 33; - if (bytes == 0 && _typeToken != Token::Bytes0) + if (bytes == 0 && _typeToken != Token::Bytes1) bytes = 32; int modifier = offset / 33; switch(modifier) @@ -131,7 +131,7 @@ TypePointer Type::fromElementaryTypeName(Token::Value _typeToken) case 1: return make_shared<IntegerType>(bytes * 8, IntegerType::Modifier::Unsigned); case 2: - return make_shared<FixedBytesType>(bytes); + return make_shared<FixedBytesType>(bytes + 1); default: solAssert(false, "Unexpected modifier value. Should never happen"); return TypePointer(); |