Skip to content

Commit c160be0

Browse files
committed
fix unsigned mask
1 parent 26c250d commit c160be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/reandroid/arsc/value/AttributeDataFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ public static int sum(AttributeDataFormat[] typeValues){
159159
}
160160

161161
public static AttributeDataFormat[] decodeValueTypes(int data){
162-
data &= 0xffff;
162+
data &= 0xff;
163163
if(data == 0){
164164
return null;
165165
}
166-
if(data == 0xffff){
166+
if(data == 0xff){
167167
return new AttributeDataFormat[]{AttributeDataFormat.ANY};
168168
}
169169
final int length = Integer.bitCount(data);

0 commit comments

Comments
 (0)