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

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

For example:


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

void foo (char b);

char f1293 (void)
{
  char pca = 0U;            /* 1293 */

  foo (1U);                 /* 1293 */

  pca = 0UL;                /* 1293 */

  return 0ULL;              /* 1293 */
}

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents