diff --git a/src/main/kotlin/me/fan87/regbex/Regbex.kt b/src/main/kotlin/me/fan87/regbex/Regbex.kt index 0ee2b4c..10a8673 100644 --- a/src/main/kotlin/me/fan87/regbex/Regbex.kt +++ b/src/main/kotlin/me/fan87/regbex/Regbex.kt @@ -471,7 +471,7 @@ class Regbex { * Expect a Ldc node with value [any] */ fun thenLdc(any: Any) { - thenCustomCheck { it is LdcInsnNode && it == any } + thenCustomCheck { it is LdcInsnNode && it.cst == any } }