diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2009-01-18 11:47:39 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2009-01-18 11:47:39 +0000 |
| commit | a46abf212dd690fbae1c538cc0c8aee529843276 (patch) | |
| tree | 04556ab409912673d5ba4205fc4d6a0ad133f4e5 /sys/gnu | |
| parent | fcee9bc232a6247bde68d296f38f4e34a5d9f692 (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_bitops.h b/sys/gnu/fs/ext2fs/ext2_bitops.h index 0ee54a1a76ed..c01150fea761 100644 --- a/sys/gnu/fs/ext2fs/ext2_bitops.h +++ b/sys/gnu/fs/ext2fs/ext2_bitops.h @@ -84,7 +84,7 @@ find_next_zero_bit(void *data, size_t sz, size_t ofs) mask = ~0U << (ofs & 31); bit = *p | ~mask; if (bit != ~0U) - return (ffs(~bit) + ofs - 1); + return (ffs(~bit) + (ofs & ~31U) - 1); p++; ofs = (ofs + 31U) & ~31U; } |
