diff --git a/csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll b/csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll index 5d93fb8f57ec..cab164846e2d 100644 --- a/csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll +++ b/csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll @@ -1149,7 +1149,7 @@ private module Cached { } or TCapturedVariableContent(VariableCapture::CapturedVariable v) or TDelegateCallArgumentContent(int i) { - i = [0 .. max(any(DelegateCall dc).getNumberOfArguments())] + i = [0 .. max(any(DelegateLikeCall dc).getNumberOfArguments()) - 1] } or TDelegateCallReturnContent()