Skip to content

Commit

Permalink
fix: String.toInstructions defaulting forStaticMethod to false
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 21, 2022
1 parent a3005fa commit 5a2f02b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class InlineSmaliCompiler {
fun String.toInstructions(templateMethod: Method? = null) = InlineSmaliCompiler.compile(this,
templateMethod?.parameters?.joinToString("") { it } ?: "",
templateMethod?.implementation?.registerCount ?: 1,
(templateMethod?.accessFlags ?: 0) and AccessFlags.STATIC.value != 0)
templateMethod?.let { AccessFlags.STATIC.isSet(it.accessFlags) } ?: true
)

/**
* Compile a line of Smali code to an instruction.
Expand Down

0 comments on commit 5a2f02b

Please sign in to comment.