MISRAC++2008-2-13-4_b
In this section:
Synopsis
(Required) Literal suffixes shall be upper case.
Enabled by default
Yes
Severity/Certainty
Low/Medium

Full description
Suffixes on integer constants are lower case.
Coding standards
- CERT DCL16-C
Use 'L', not 'l', to indicate a long value
- CERT DCL16-CPP
Use 'L', not 'l', to indicate a long value
Code examples
The following code example fails the check and will give a warning:
#include <stdint.h>
void func()
{
uint32_t b = 0u;
}
The following code example passes the check and will not give a warning about this issue:
#include <stdint.h>
void func()
{
uint32_t a = 0U;
int64_t c = 0L;
uint64_t e = 0UL;
uint32_t g = 0x12bU;
float i = 1.2F;
float k = 1.2L;
}