Re: [PATCH] cassini: i reaches 0, not -1.

From: David Miller
Date: Mon Feb 09 2009 - 20:56:22 EST


From: Roel Kluin <roel.kluin@xxxxxxxxx>
Date: Mon, 09 Feb 2009 23:12:02 +0100

> With while (i-- > 0) { ... } i reaches 0, not -1.
>
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>

Does it?

--------------------
#include <stdio.h>
int main(void)
{
int i = 20;
while (i-- > 0)
;
printf("%d\n", i);

return 0;
}
--------------------
davem@sunset:~/src/GIT/linux-2.6$ gcc -O2 -o x x.c
davem@sunset:~/src/GIT/linux-2.6$ ./x
-1
davem@sunset:~/src/GIT/linux-2.6$
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/