lkml.org 
[lkml]   [2009]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] cassini: i reaches 0, not -1.
From
From: Roel Kluin <roel.kluin@gmail.com>
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@gmail.com>

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$


\
 
 \ /
  Last update: 2009-02-10 02:59    [W:1.291 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site