Date: Mon, 13 Jun 2005 14:44:27 +0200 From: Joerg Sonnenberger <joerg@britannica.bec.de> To: freebsd-hackers@freebsd.org Subject: Re: Obvious bug in /sys/i386/include/bus.h (was: bus_at386.h) Message-ID: <20050613124427.GD1343@britannica.bec.de> In-Reply-To: <200506131412.38967.hselasky@c2i.net> References: <200506131412.38967.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 13, 2005 at 02:12:38PM +0200, Hans Petter Selasky wrote: > This is equivalent to: > > while(--count) > { > /* I/O */ > } > > which is obviously wrong, because it doesn't check for count equal to > zero. Why do you think it is a bug? It is part of the interface contract and useful to avoid an unnecessary check in 99% of the cases. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050613124427.GD1343>