Subject: Re: typo in pci/cmpci.c ?
To: None <current-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 11/04/2002 15:17:35
--=.bJj4p)T0se8s8p
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Murray Armfield <murray.armfield@arconsulting.com.au> wrote:
> --- sys/dev/cmpci.c.orig Mon Nov 4 22:37:06 2002
> +++ sys/dev/cmpci.c
> @@ -791,7 +791,7 @@ cmpci_round_blocksize(handle, block)
> void *handle;
> int block;
> {
> - return (block & -4);
> + return (block & ~0x04);
> }
I think the old version is alright at least on systems with two's
complement. Maybe you meant this:
return (block & ~0x03);
Christian
--=.bJj4p)T0se8s8p
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (NetBSD)
iD8DBQE9xoGJ0KQix3oyIMcRAjIhAKCmhipIhC08z+5hgAAfg9z1L5BTpwCfYneD
SW01o9+32LxeatsKY6r2RnQ=
=3cFC
-----END PGP SIGNATURE-----
--=.bJj4p)T0se8s8p--