mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 04:17:36 +02:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user