Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Change PUSHA to be relative (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored May 1, 2020
1 parent 53d25f1 commit 3a7f6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo-vm/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private bool ExecuteInstruction()
}
case OpCode.PUSHA:
{
int position = instruction.TokenI32;
int position = checked(context.InstructionPointer + instruction.TokenI32);
if (position < 0 || position > context.Script.Length) return false;
Push(new Pointer(context.Script, position));
break;
Expand Down

0 comments on commit 3a7f6ec

Please sign in to comment.