diff options
Diffstat (limited to 'sys/libkern/ffs.c')
-rw-r--r-- | sys/libkern/ffs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/ffs.c b/sys/libkern/ffs.c index 6c4d97e..b63d307 100644 --- a/sys/libkern/ffs.c +++ b/sys/libkern/ffs.c @@ -47,6 +47,6 @@ ffs(int mask) if (mask == 0) return (0); for (bit = 1; !(mask & 1); bit++) - (unsigned int)mask >>= 1; + mask = (unsigned int)mask >> 1; return (bit); } |