mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +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,
|
/** Only the long and double primitive types are 2 words,
|
||||||
* everything else is a single word
|
* everything else is a single word
|
||||||
*/
|
*/
|
||||||
if (type.equals("J") || type.equals("D")) {
|
if (type.charAt(0) == 'J' || type.charAt(0) == 'D') {
|
||||||
return 2;
|
return 2;
|
||||||
} else {
|
} else {
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user