M5-0-12
: Incorrect alerts on assignments of valid numerical values
#541
Labels
Difficulty-Low
A false positive or false negative report which is expected to take <1 day effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-Medium
Standard-AUTOSAR
Affected rules
Description
The implementation incorrectly implements the identification of numeric values.
Characters will have type
char
while numeric values will be promoted toint
orunsigned int
.However, in the case of templates, the type of the numeric value will be the fully converted expressions type. That is,
unsigned char
in the example below.Example
The following is compliant per example in the standard, however is still seen as a contravention.
The text was updated successfully, but these errors were encountered: