![]() |
![]() |
1253 | ![]() |
||||
![]() | |||||||
| Arithmetic type - Balancing | |||||||
In the course of a type balancing operation, an unsuffixed integer constant is being implicitly converted to another type. The type conversion is largely academic but addition of a suffix might promote additional clarity. Note that the type of an integer constant depends on its value and the implemented size of an int (e.g. whether it is a 16 bit or 32 bit quantity) as well as the presence of suffixes. More ... For example:
/*PRQA S 2017,3112,3120,3408,3447,3602 ++*/
extern unsigned int uia;
extern signed long sla;
extern unsigned long ula;
extern void foo( void )
{
uia + 5; /* Message 1253 */
sla + 5; /* Message 1253 */
ula + 5; /* Message 1253 */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |