From e704d0cce21e2680cb04cf1e65c92a34b2364dc0 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 3 Oct 1999 10:23:29 +0000 Subject: 1999-10-03 Roland McGrath * bitmap.c (ffz): Subtract one from (1-origin) result of ffs to get our (0-origin) result. * Makefile (LCLHDRS): bitmap.h -> bitmap.c --- ext2fs/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/bitmap.c') diff --git a/ext2fs/bitmap.c b/ext2fs/bitmap.c index 2f1dd2d1..e512d011 100644 --- a/ext2fs/bitmap.c +++ b/ext2fs/bitmap.c @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define ffz(word) (ffs (~(word))) +#define ffz(word) (ffs (~(unsigned int) (word)) - 1) /* * linux/fs/ext2/bitmap.c (&c) -- cgit v1.2.3