summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/ffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/ffs.c')
-rw-r--r--lib/libc/string/ffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/ffs.c b/lib/libc/string/ffs.c
index abd2146..f8da996 100644
--- a/lib/libc/string/ffs.c
+++ b/lib/libc/string/ffs.c
@@ -50,6 +50,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);
}
OpenPOWER on IntegriCloud