1 2 3 4 5 6 7 8 9 10 11 12
int foo(int i) { return ((int)((unsigned)(i + 1) * 4)) / 4; } extern void abort(void); int main() { if (foo(0x3fffffff) != 0) abort (); return 0; }