Skip to content

Commit

Permalink
Fixed accessing field value without Read()
Browse files Browse the repository at this point in the history
  • Loading branch information
mmk-1 committed Sep 25, 2023
1 parent 213cfe4 commit 1e1cfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (vm *VirtualMachine) updatePc(
}

// todo(rodro): math check when relAddr is negative
relAddr, err := op1Cell.Value.Uint64()
relAddr, err := op1Cell.Read().Uint64()
if err != nil {
return 0, err
}
Expand Down

0 comments on commit 1e1cfe7

Please sign in to comment.