...
| Code Block | ||
|---|---|---|
| ||
int result = 0; for(int i = 0; i < 4; i++) result = ((result << 8) | (b[i] & 0xff)); |
Risk
...
Assessment
Failing to consider integer promotions when dealing with floating point and integer operands can result in loss of precision.
...
...
| Code Block | ||
|---|---|---|
| ||
int result = 0; for(int i = 0; i < 4; i++) result = ((result << 8) | (b[i] & 0xff)); |
...
Failing to consider integer promotions when dealing with floating point and integer operands can result in loss of precision.
...