Read the element count of a packed switch payload as a ushort

This commit is contained in:
Ben Gruver 2012-10-31 19:28:45 -07:00
parent 1ff61d42de
commit c12bbf3a25

View File

@ -57,7 +57,7 @@ public class DexBackedPackedSwitchPayload implements PackedSwitchPayload {
this.dexBuf = dexBuf;
this.instructionOffset = instructionOffset;
this.elementCount = dexBuf.readByte(instructionOffset + ELEMENT_COUNT_OFFSET);
this.elementCount = dexBuf.readUshort(instructionOffset + ELEMENT_COUNT_OFFSET);
}
@Nonnull