use a character comparison instead of a string comparison for TypeIdItem.getRegisterCount()

git-svn-id: https://smali.googlecode.com/svn/trunk@687 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2010-04-03 23:02:11 +00:00
parent bba8645009
commit bf483ac86d

View File

@ -168,7 +168,7 @@ public class TypeIdItem extends Item<TypeIdItem> {
/** Only the long and double primitive types are 2 words,
* everything else is a single word
*/
if (type.equals("J") || type.equals("D")) {
if (type.charAt(0) == 'J' || type.charAt(0) == 'D') {
return 2;
} else {
return 1;