Skip to content

Commit

Permalink
wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 15, 2024
1 parent 83b7edf commit ec65218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/pua/flatbuffers_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (b *Builder) WriteVtable(ls *lua.LState) int {
}

var existingVtable int
for i := len(b.ba.data) - 1; i >= 0; i-- {
for i := len(b.vtables) - 1; i >= 0; i -= 1 {
vt2Offset := b.vtables[i]
vt2Start := len(b.ba.data) - vt2Offset
vt2Len := uint16n.UnpackU64(b.ba.data[vt2Start:])
Expand All @@ -176,7 +176,7 @@ func (b *Builder) WriteVtable(ls *lua.LState) int {
}

if existingVtable == 0 {
for i := len(b.currentVT) - 1; i >= 0; i-- {
for i := len(b.currentVT) - 1; i >= 0; i -= 1 {
var off uint16
if b.currentVT[i] != 0 {
off = uint16(objectOffset - b.currentVT[i])
Expand Down

0 comments on commit ec65218

Please sign in to comment.