Fix shift precedence in FontListParser.

BUG=27707457

Change-Id: I7ea7a5fa67ec540401454136427b37562a4eef30
This commit is contained in:
Ben Wagner
2016-03-17 11:53:14 -04:00
committed by Roozbeh Pournader
parent af64f6341b
commit 008c6c5490

View File

@@ -179,10 +179,10 @@ public class FontListParser {
int tag = 0;
String tagStr = parser.getAttributeValue(null, "tag");
if (tagStr != null && TAG_PATTERN.matcher(tagStr).matches()) {
tag = tagStr.charAt(0) << 24 +
tagStr.charAt(1) << 16 +
tagStr.charAt(2) << 8 +
tagStr.charAt(3);
tag = (tagStr.charAt(0) << 24) +
(tagStr.charAt(1) << 16) +
(tagStr.charAt(2) << 8) +
(tagStr.charAt(3) );
} else {
throw new XmlPullParserException("Invalid tag attribute value.", parser, null);
}