mirror of
https://github.com/revanced/smali.git
synced 2025-05-15 13:47:05 +02:00
Use the shorter form of decodeUnsignedShort
git-svn-id: https://smali.googlecode.com/svn/trunk@479 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
29f49465ca
commit
b09920f24f
@ -43,8 +43,7 @@ public abstract class InstructionWithReference extends Instruction {
|
|||||||
protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) {
|
||||||
super(opcode, buffer, bufferIndex);
|
super(opcode, buffer, bufferIndex);
|
||||||
|
|
||||||
int itemIndex = NumberUtils.decodeUnsignedShort(buffer[bufferIndex + 2],
|
int itemIndex = NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2);
|
||||||
buffer[bufferIndex + 3]);
|
|
||||||
lookupReferencedItem(dexFile, opcode, itemIndex);
|
lookupReferencedItem(dexFile, opcode, itemIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user