Skip to content

Commit

Permalink
adjust arrays to 1 based offset when row value is an array being conv…
Browse files Browse the repository at this point in the history
…erted to table
  • Loading branch information
serprex committed Mar 19, 2024
1 parent d51355e commit 38e05a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/pua/peerdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func LuaRecordIndex(ls *lua.LState) int {
func qvToLTable[T any](ls *lua.LState, s []T, f func(x T) lua.LValue) *lua.LTable {
tbl := ls.CreateTable(len(s), 0)
for idx, val := range s {
tbl.RawSetInt(idx, f(val))
tbl.RawSetInt(idx+1, f(val))
}
return tbl
}
Expand Down

0 comments on commit 38e05a3

Please sign in to comment.