Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A3-9-1 - example with plain 'char' type
#3
The rule’s rationale is imprecise in stating “the basic numerical types of char, int …”. What is intended here is to say “signed char, unsigned char, int, short …”.

Plain char is not considered to be a numerical type in Autosar/MISRA, so A3-9-1 does not apply, see M4-5-3  & M5-0-11.
The example “char i6 = 23;” is incorrectly marked as non-compliant. It should be marked as “rule does not apply”. It is indeed non-compliant with respect to M5-0-11
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A3-9-1 - example with plain 'char' type - by misra cpp - 27-10-2023, 03:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)