Skip to content

Commit

Permalink
luajit: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dlatchx committed Jun 21, 2023
1 parent 64c92da commit c42fb9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion format/luajit/luajit.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func LuaJITDecodeDebug(d *decode.D, debuglen uint64, numbc uint64) {
})

// TODO: find out more about how to decode these strings
d.FieldArray("anotations", func(d *decode.D) {
d.FieldArray("annotations", func(d *decode.D) {
i := numbc
for i < debuglen {
str := d.FieldUTF8Null("value")
Expand Down
4 changes: 2 additions & 2 deletions format/luajit/testdata/simple.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $ fq dv simple.luac
0x040| 02| .| [4]: 2 value 0x4f-0x4f.7 (1)
0x050|02 |. | [5]: 2 value 0x50-0x50.7 (1)
0x050| 02 | . | [6]: 2 value 0x51-0x51.7 (1)
| | | anotations[0:6]: 0x52-0x5e.7 (13)
| | | annotations[0:6]: 0x52-0x5e.7 (13)
0x050| 61 00 | a. | [0]: "a" value 0x52-0x53.7 (2)
0x050| 62 00 | b. | [1]: "b" value 0x54-0x55.7 (2)
0x050| 78 00 | x. | [2]: "x" value 0x56-0x57.7 (2)
Expand Down Expand Up @@ -277,7 +277,7 @@ $ fq dv simple.luac
0x160| 21 | ! | [11]: 33 value 0x165-0x165.7 (1)
0x160| 21 | ! | [12]: 33 value 0x166-0x166.7 (1)
0x160| 21 | ! | [13]: 33 value 0x167-0x167.7 (1)
| | | anotations[0:5]: 0x168-0x181.7 (26)
| | | annotations[0:5]: 0x168-0x181.7 (26)
0x160| 73 6f 6d 65 74 61 62 6c| sometabl| [0]: "sometable" value 0x168-0x171.7 (10)
0x170|65 00 |e. |
0x170| 02 0d 61 00 | ..a. | [1]: "\x02\ra" value 0x172-0x175.7 (4)
Expand Down

0 comments on commit c42fb9e

Please sign in to comment.