aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-06-08 19:08:22 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-08 19:53:25 +0800
commit05d36074d17832060b073b2f9920c0918b0987d8 (patch)
tree249a689adf6e96e19b8ecfab328b7ea1826db038 /Types.cpp
parente7aa5f079a9c49e6e34667c2451aac8d8f6f5100 (diff)
downloaddexon-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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 1316bbc3..2f08915e 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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();