Skip to content

Commit

Permalink
Properly skip bytes prior to FIO
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed May 17, 2021
1 parent c104343 commit f9f1b5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions codetrie/codetrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ func setFIO(chunks []*Chunk) {
}

for j, op := range chunk.code {
// Skip bytes part of a data
if int(chunks[i].fio) > j {
continue
}

opcode := OpCode(op)
// Push is the only opcode with immediate
if !opcode.IsPush() {
Expand Down

0 comments on commit f9f1b5b

Please sign in to comment.