There was an error while loading. Please reload this page.
1 parent 0041479 commit 5e6dddaCopy full SHA for 5e6ddda
1 file changed
ql/src/codeql_ruby/controlflow/internal/ControlFlowGraphImpl.qll
@@ -915,9 +915,9 @@ module Trees {
915
final override ControlFlowTree getChildNode(int i) {
916
result = this.getReceiver() and i = 0
917
or
918
- result = this.getArgument(i - count(this.getReceiver()))
+ result = this.getArgument(i - 1)
919
920
- result = this.getBlock() and i = count(this.getReceiver()) + this.getNumberOfArguments()
+ result = this.getBlock() and i = 1 + this.getNumberOfArguments()
921
}
922
923
0 commit comments