Skip to content

Commit f09cc5d

Browse files
committed
Minor comment
1 parent f798abe commit f09cc5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c/misra/src/rules/RULE-21-13/CtypeFunctionArgNotUnsignedCharOrEof.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ where
2828
ctypeCall = ctype.getACallToThisFunction()
2929
|
3030
/* Case 1: The argument's value should be in the `unsigned char` range. */
31-
typeLowerBound(unsignedChar) <= lowerBound(ctypeCall.getAnArgument().getExplicitlyConverted()) and // consider casts
31+
// Use `.getExplicitlyConverted` to consider inline argument casts.
32+
typeLowerBound(unsignedChar) <= lowerBound(ctypeCall.getAnArgument().getExplicitlyConverted()) and
3233
upperBound(ctypeCall.getAnArgument().getExplicitlyConverted()) <= typeUpperBound(unsignedChar)
3334
or
3435
/* Case 2: EOF flows to this argument without modifications. */

0 commit comments

Comments
 (0)