![]() |
![]() |
0496 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.3.5, ISO:C90-6.3.7, ISO:C90-6.3.10, ISO:C90-6.3.11, ISO:C90-6.3.12 | ||||||
This is a constraint error The right hand operand of the %, <<, >>, &, ^ and | operators must be of integral type. For example:
/*PRQA S 1253,3120,3198,3199,3203,3227,3408 ++*/
void foo(unsigned int n, float t)
{
n = n << t; /* Message 0496 */
n = n % t; /* Message 0496 */
}
MISRA C:2012 Rules applicable to message 0496:
| Rule-1.1 (Required) | The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits |
See also:
![]() | ||
| 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 |