[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090209.175714.70463534.davem@davemloft.net>
Date: Mon, 09 Feb 2009 17:57:14 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: roel.kluin@...il.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] netdevice: ticks reaches 25, not 26.
From: Roel Kluin <roel.kluin@...il.com>
Date: Mon, 09 Feb 2009 23:22:11 +0100
> With while (tick++ < 25) { ... } ticks reaches 25, not 26.
Does it?
--------------------
#include <stdio.h>
int main(void)
{
int i = 0;
while (i++ < 25)
;
printf("%d\n", i);
return 0;
}
--------------------
davem@...set:~/src/GIT/linux-2.6$ gcc -O2 -o x x.c
davem@...set:~/src/GIT/linux-2.6$ ./x
26
davem@...set:~/src/GIT/linux-2.6$
I'm getting extremely tired of these "off by one" patches, to be
honest with you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists