diff options
author | Andrzej Trznadel <[email protected]> | 2008-03-17 15:52:08 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-03-17 15:52:08 -0700 |
commit | e9809a36aaea3480cba5bd62360bf9d481ff9011 (patch) | |
tree | 16f938da72a67715b87c8714d4408910aef72c32 /src/mesa/main | |
parent | f2b914298f677555d1e605cbcc2b7f73c0f0847a (diff) |
Fix compat implementation of ffs() to return 1-based bit numbers.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 3ae56c8b0b6..7d4b1200992 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -560,6 +560,7 @@ _mesa_ffs(int i) bit++; i >>= 1; } + bit++; } return bit; #else |