[previous] 1811 [next] An operand of 'essentially character' type is being subtracted from an operand of 'essentially signed' type.
Arithmetic type - Balancing

This message is issued whenever an expression of essentially character type is subtracted from an expression of essentially signed type.

For example:


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

int f1811 (int a, char b)
{
  b = b - a;                /* OK, essential type of RHS is char */
  return a - b;             /* 1811 */
}

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