mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Bugfix: Tag takes one byte (for JUMPDEST)
This commit is contained in:
parent
bded2ff372
commit
f6e24989ec
@ -54,6 +54,7 @@ unsigned Assembly::bytesRequired() const
|
||||
switch (i.m_type)
|
||||
{
|
||||
case Operation:
|
||||
case Tag: // 1 byte for the JUMPDEST
|
||||
ret++;
|
||||
break;
|
||||
case PushString:
|
||||
@ -69,7 +70,6 @@ unsigned Assembly::bytesRequired() const
|
||||
case PushData:
|
||||
case PushSub:
|
||||
ret += 1 + br;
|
||||
case Tag:;
|
||||
default:;
|
||||
}
|
||||
if (dev::bytesRequired(ret) <= br)
|
||||
|
Loading…
Reference in New Issue
Block a user