mirror of
https://github.com/revanced/smali.git
synced 2025-05-08 10:24:31 +02:00
use Instruciton.getCodeUnits() in InstructionOffsetMap
This commit is contained in:
parent
a8ef706d1d
commit
38e925db25
@ -49,8 +49,7 @@ public class InstructionOffsetMap {
|
||||
int codeOffset = 0;
|
||||
for (int i=0; i<instructions.size(); i++) {
|
||||
instructionCodeOffsets[i] = codeOffset;
|
||||
//TODO: handle variable size instructions
|
||||
codeOffset += instructions.get(i).getOpcode().format.size / 2;
|
||||
codeOffset += instructions.get(i).getCodeUnits();
|
||||
}
|
||||
|
||||
this.instructionCodeOffsets = instructionCodeOffsets;
|
||||
|
Loading…
x
Reference in New Issue
Block a user