diff options
author | Roland McGrath <roland@gnu.org> | 1999-10-03 10:23:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-10-03 10:23:29 +0000 |
commit | e704d0cce21e2680cb04cf1e65c92a34b2364dc0 (patch) | |
tree | 9d51aa43e559ec78cb5ce337de807f860616f633 /ext2fs | |
parent | ebdb70eb19f10ed22d5a83f757b09b744dde32a2 (diff) |
1999-10-03 Roland McGrath <roland@baalperazim.frob.com>
* bitmap.c (ffz): Subtract one from (1-origin) result of ffs to get
our (0-origin) result.
* Makefile (LCLHDRS): bitmap.h -> bitmap.c
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |