summaryrefslogtreecommitdiff
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorAndrzej Trznadel <Andrzej.Trznadel@intel.com>2008-03-17 15:52:08 -0700
committerEric Anholt <eric@anholt.net>2008-03-17 15:52:08 -0700
commite9809a36aaea3480cba5bd62360bf9d481ff9011 (patch)
tree16f938da72a67715b87c8714d4408910aef72c32 /src/mesa/main/imports.c
parentf2b914298f677555d1e605cbcc2b7f73c0f0847a (diff)
Fix compat implementation of ffs() to return 1-based bit numbers.
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 3ae56c8b0b..7d4b120099 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