|
@ -54,6 +54,7 @@ unsigned Assembly::bytesRequired() const |
|
|
switch (i.m_type) |
|
|
switch (i.m_type) |
|
|
{ |
|
|
{ |
|
|
case Operation: |
|
|
case Operation: |
|
|
|
|
|
case Tag: // 1 byte for the JUMPDEST
|
|
|
ret++; |
|
|
ret++; |
|
|
break; |
|
|
break; |
|
|
case PushString: |
|
|
case PushString: |
|
@ -69,7 +70,6 @@ unsigned Assembly::bytesRequired() const |
|
|
case PushData: |
|
|
case PushData: |
|
|
case PushSub: |
|
|
case PushSub: |
|
|
ret += 1 + br; |
|
|
ret += 1 + br; |
|
|
case Tag:; |
|
|
|
|
|
default:; |
|
|
default:; |
|
|
} |
|
|
} |
|
|
if (dev::bytesRequired(ret) <= br) |
|
|
if (dev::bytesRequired(ret) <= br) |
|
|