![]() |
![]() |
3629 | ![]() |
||||
![]() | |||||||
| Declarations and Definitions | |||||||
A union type is being defined with a member of floating type. Unions are frequently used as a way of equivalencing different data types. For example byte information can be extracted from or packed into larger integer types. Manipulating the underlying representation of floating point data is not recommended and message 3629 therefore identifies any union declaration which contains members of floating type. For example:
/*PRQA S 553,750,2017 ++*/
union UT
{
double dbm; /* Message 3629 */
unsigned long ulx;
};
MISRA-C:2004 Rules applicable to message 3629:
| Rule 12.12 (Required) | The underlying bit representations of floating-point values shall not be used. |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |