...
Code Block | ||
---|---|---|
| ||
int i = /* some expressionExpression that evaluates to the value 32767 */; /* ... */ if (i + 1 <= i) { /* handle overflow */ } /* expression involving i + 1 */ |
...
Code Block | ||
---|---|---|
| ||
long i = /* some expressionExpression that evaluates to the value 32767 */; /* ... */ /* No test is necessary; i is known not to overflow. */ /* expression involving i + 1 */ |
...