Skip to content

Commit 5e6ddda

Browse files
committed
Replace count(getReceiver()) with 1
1 parent 0041479 commit 5e6ddda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ql/src/codeql_ruby/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,9 @@ module Trees {
915915
final override ControlFlowTree getChildNode(int i) {
916916
result = this.getReceiver() and i = 0
917917
or
918-
result = this.getArgument(i - count(this.getReceiver()))
918+
result = this.getArgument(i - 1)
919919
or
920-
result = this.getBlock() and i = count(this.getReceiver()) + this.getNumberOfArguments()
920+
result = this.getBlock() and i = 1 + this.getNumberOfArguments()
921921
}
922922
}
923923

0 commit comments

Comments
 (0)