Automatically merged updates to draft EIP(s) 615

Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing draft EIP(s)
 - The creator of this PR is listed as an author on all modified EIP(s)
 - The build is passing
This commit is contained in:
Yoichi Hirai 2018-04-04 21:28:59 +02:00 committed by EIP Automerge Bot
parent ecb731ef00
commit 77ee0e138c
1 changed files with 2 additions and 2 deletions

View File

@ -211,9 +211,8 @@ Validating that jumps are to valid addresses takes two sequential passes over th
bool validate_jumps(PC)
{
current_sub = PC
// build sets of BEGINSUBs and JUMPDESTs
current_sub = 0
for (PC = 0; instruction = bytecode[PC]; PC = advance_pc(PC))
{
if instruction is invalid
@ -230,6 +229,7 @@ Validating that jumps are to valid addresses takes two sequential passes over th
}
// check that targets are in subroutine
current_sub = 0
for (PC = 0; instruction = bytecode[PC]; PC = advance_pc(PC))
{
if instruction is BEGINDATA