Fix compat implementation of ffs() to return 1-based bit numbers.

This commit is contained in:
Andrzej Trznadel 2008-03-17 15:52:08 -07:00 committed by Eric Anholt
parent f2b914298f
commit e9809a36aa

View file

@ -560,6 +560,7 @@ _mesa_ffs(int i)
bit++;
i >>= 1;
}
bit++;
}
return bit;
#else