Skip to content

Commit

Permalink
[DEX] Fix: Proper parameter index counting
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Nov 29, 2024
1 parent 3aff898 commit 7855672
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/com/reandroid/dex/key/ProtoKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.reandroid.dex.smali.SmaliWriter;
import com.reandroid.utils.CompareUtil;
import com.reandroid.utils.ObjectsUtil;
import com.reandroid.utils.StringsUtil;
import com.reandroid.utils.collection.*;

import java.io.IOException;
Expand Down Expand Up @@ -44,14 +43,8 @@ public int getParameterIndex(int register) {
}
TypeKey typeKey = getParameter(i);
registerCount ++;
if(registerCount == register){
return i;
}
if(typeKey.isWide()) {
registerCount ++;
if(registerCount == register){
return i;
}
}
}
return -1;
Expand Down

0 comments on commit 7855672

Please sign in to comment.