...
Failing to consider integer promotions when dealing with floating-point and integer operands can result in loss of precision.
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
SonarQube Java Plugin |
| S3034 |
Bibliography
Puzzle 9, "Tweedledum" | |
"BIT: Bitwise OR of Signed Byte Value" | |
[JLS 2013] | §4.2.2, "Integer Operations" |
...