Skip to content

Commit f9f1b5b

Browse files
committed
Properly skip bytes prior to FIO
1 parent c104343 commit f9f1b5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

codetrie/codetrie.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ func setFIO(chunks []*Chunk) {
224224
}
225225

226226
for j, op := range chunk.code {
227+
// Skip bytes part of a data
228+
if int(chunks[i].fio) > j {
229+
continue
230+
}
231+
227232
opcode := OpCode(op)
228233
// Push is the only opcode with immediate
229234
if !opcode.IsPush() {

0 commit comments

Comments
 (0)