mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 12:20:11 +02:00
Fix the calculation of method parameter register in MethodAnalyzer
This commit is contained in:
parent
93aa50139c
commit
13993573b2
@ -144,7 +144,6 @@ public class MethodAnalyzer {
|
|||||||
//if this isn't a static method, determine which register is the "this" register and set the type to the
|
//if this isn't a static method, determine which register is the "this" register and set the type to the
|
||||||
//current class
|
//current class
|
||||||
if (!MethodUtil.isStatic(method)) {
|
if (!MethodUtil.isStatic(method)) {
|
||||||
nonParameterRegisters--;
|
|
||||||
int thisRegister = totalRegisters - parameterRegisters;
|
int thisRegister = totalRegisters - parameterRegisters;
|
||||||
|
|
||||||
//if this is a constructor, then set the "this" register to an uninitialized reference of the current class
|
//if this is a constructor, then set the "this" register to an uninitialized reference of the current class
|
||||||
|
Loading…
x
Reference in New Issue
Block a user