Skip to content

Commit

Permalink
minor formatting (#4774)
Browse files Browse the repository at this point in the history
Add one empty line so code displays properly  at eips.ethereum.org
  • Loading branch information
gcolvin authored and pull[bot] committed Aug 27, 2023
1 parent fb520e2 commit 5348965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EIPS/eip-3779.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ For simplicity's sake we assume that _jumpdest analysis_ has been done and that
* `remove_items(pc)`returns the new `sp` after items are removed from the `data_stack` by the instruction at `pc`.
* `add_items(pc)`returns the new SP after items are added to the `data_stack` by the instruction at `pc`.
```
var code [code_len]byte
var avail_items [code_len]int
var return_stack [1024]int = { -1 }
Expand Down Expand Up @@ -316,7 +317,7 @@ func validate(pc := 0, sp := 0, bp := 0, rp := 0) int, error {
// both sides valid, check stack and return used_items
used_items += max(left_used, right_used)
if (sp += used_items > `1023`) {
if (sp += used_items > 1023) {
return pc, stack_overflow
}
return used_items, nil
Expand Down

0 comments on commit 5348965

Please sign in to comment.