1
1
mirror of https://github.com/wader/fq.git synced 2024-12-29 16:42:06 +03:00
This commit is contained in:
Babz 2023-06-20 23:02:31 +02:00
parent 1afdf8b1cf
commit db2e621468
2 changed files with 13 additions and 12 deletions

View File

@ -88,6 +88,7 @@ func LuaJITDecodeHeader(di *DumpInfo, d *decode.D) {
}
type jumpBias struct{}
func (j *jumpBias) MapUint(u scalar.Uint) (scalar.Uint, error) {
u.Actual -= 0x8000
return u, nil
@ -111,6 +112,7 @@ func LuaJITDecodeBCIns(d *decode.D) {
}
type ktabType struct{}
func (t *ktabType) MapUint(u scalar.Uint) (scalar.Uint, error) {
switch u.Actual {
case 0:
@ -129,7 +131,6 @@ func (t *ktabType) MapUint(u scalar.Uint) (scalar.Uint, error) {
return u, nil
}
func LuaJITDecodeKTabK(d *decode.D) {
ktabtype := d.FieldULEB128("ktabtype", &ktabType{})
@ -162,6 +163,7 @@ func LuaJITDecodeCplx(d *decode.D) any {
}
type kgcType struct{}
func (t *kgcType) MapUint(u scalar.Uint) (scalar.Uint, error) {
switch u.Actual {
case 0:

View File

@ -172,4 +172,3 @@ func init() {
bcOpSyms[uint64(i)] = opcodes[i].Name
}
}