[previous] 1290 [next] An integer constant of 'essentially signed' type is being converted to unsigned type on assignment.
Arithmetic type - Assignment

This message is issued whenever a constant of essentially signed type undergoes an assigning conversion to an unsigned integer type.

For example:


/*PRQA S 1-9999 ++*/
/*PRQA S 1290 --*/

void foo (unsigned b);

unsigned f1290 (void)
{
  unsigned uia = 0;         /* 1290 */

  foo (1L);                 /* 1290 */

  uia = 0LL;                /* 1290 */

  return 1;                 /* 1290 */
}


No MISRA C:2012 Rules applicable to message 1290


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents