summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/bitmap.c2
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)