AutosarC++18_10-M5.0.6

An implicit integral or floating-point conversion shall not reduce the size of the underlying type

Required inputs: IR

[Undefined 4.9(1)]
Rationale

An implicit conversion that results in the size of a type being reduced may result in a loss of information.

Example
void f ( ) 
{
int32_t s32;
int16_t s16;
s16 = s32; // Non-compliant
s16 = static_cast< int16_t > ( s32 ); // Compliant
}

Note

For legal reasons, this rule’s description is not part of the public documentation.