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

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

For example:


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

void foo (char b);

char f1292 (void)
{
  char pca = 0;             /* 1292 */

  foo (1L);                 /* 1292 */

  pca = 0LL;                /* 1292 */

  return 1;                 /* 1292 */
}

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