...
When converting integers to floating-point values, and vice versa, it is important to carry out proper range checks to avoid undefined behavior . (See see FLP34-C. Ensure that floating-point conversions are within range of the new type).)
Noncompliant Code Example
...
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
|
| Can detect violations of this rule. Any assignment operation where the type of the assigned-to value is | |||||||
| 435 S | Enhanced Enforcementenforcement | |||||||
| PRQA QA-C |
| 4117 | Partially implemented | ||||||
|
|
|
...