Skip to content

Commit

Permalink
docs: fix improper docs for fuzzy resolver Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas authored and oSumAtrIX committed Jun 5, 2022
1 parent c8b68e3 commit 7f18bbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ interface PatternScanMethod {

/**
* Represents a resolver warning.
* @param correctOpcode The opcode the signature expected it to be.
* @param wrongOpcode The opcode the signature currently has.
* @param correctOpcode The opcode the instruction list has.
* @param wrongOpcode The opcode the pattern list of the signature currently has.
* @param instructionIndex The index of the opcode relative to the instruction list.
* @param patternIndex The index of the opcode relative to the pattern list from the signature.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ internal class SignatureResolver(
scanResult: PatternScanResult,
) = buildList {
val pattern = signature.opcodes!!
for ((patternIndex, originalIndex) in (scanResult.startIndex until scanResult.endIndex).withIndex()) {
val correctOpcode = instructions.elementAt(originalIndex).opcode
for ((patternIndex, instructionIndex) in (scanResult.startIndex until scanResult.endIndex).withIndex()) {
val correctOpcode = instructions.elementAt(instructionIndex).opcode
val patternOpcode = pattern.elementAt(patternIndex)
if (
patternOpcode != null && // unknown opcode
Expand All @@ -136,7 +136,7 @@ internal class SignatureResolver(
this.add(
PatternScanMethod.Fuzzy.Warning(
correctOpcode, patternOpcode,
originalIndex, patternIndex,
instructionIndex, patternIndex,
)
)
}
Expand Down

0 comments on commit 7f18bbf

Please sign in to comment.