Re: [PATCH] A new version of the sys_swapon bugfix

Simon Kenyon (simon@koala.ie)
Tue, 03 Nov 1998 22:38:54 -0000 (GMT)


On 03-Nov-98 Stephen Williams wrote:
> static int i = 0, *p;
> if (&p[i - 1] >= p) printf("C does not promote in pointer arithmetic\n");
&p[i-1] >= p is the same as &p[i-1] >= &p[0] is the same as i-1 >= 0 is the same
as i >= 1
but i = 0
so the then is never taken
--
simon

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/