fix: print instruction index of warning

This commit is contained in:
Lucaskyy 2022-04-14 21:48:46 +02:00
parent e5a609f716
commit 9e29aeeeff
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -35,7 +35,7 @@ internal class SignatureChecker {
for (i in (warning.actualIndex - 5).coerceAtLeast(0) until warning.actualIndex) {
println("$i: ${instructions[i].opcode}")
}
println(warning.toString())
println("${warning.actualIndex}: $warning")
for (i in warning.actualIndex + 1 until (warning.actualIndex + 5).coerceAtMost(instructions.size)) {
println("$i: ${instructions[i].opcode}")
}