Skip to content

Commit a1a47cc

Browse files
committed
RULE-17-5: Avoid deprecated predicate
1 parent 1193b8d commit a1a47cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/misra/src/rules/RULE-17-5/ArrayFunctionArgumentNumberOfElements.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ArrayParameter extends Parameter {
4242
* int arr2[2] = {1, 2, 3};
4343
* ```
4444
*/
45-
int countElements(ArrayAggregateLiteral l) { result = count(l.getElementExpr(_)) }
45+
int countElements(ArrayAggregateLiteral l) { result = count(l.getAnElementExpr(_)) }
4646

4747
class SmallArrayConfig extends DataFlow::Configuration {
4848
SmallArrayConfig() { this = "SmallArrayConfig" }

0 commit comments

Comments
 (0)