summaryrefslogtreecommitdiffstats
path: root/include/cutils/bitops.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-05-22 16:08:52 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-23 15:09:57 -0700
commit4887842c925f304dc862bdd5810f27cdd2eaedcb (patch)
tree6d671ba862264343cb5162a2dcd2cbb3986d3437 /include/cutils/bitops.h
parent818f80045fe4c925a7739a1d1e69e3ebb3a3dbd9 (diff)
downloadsystem_core-4887842c925f304dc862bdd5810f27cdd2eaedcb.zip
system_core-4887842c925f304dc862bdd5810f27cdd2eaedcb.tar.gz
system_core-4887842c925f304dc862bdd5810f27cdd2eaedcb.tar.bz2
include: cleanup for -Wsystem-header
- warnings as errors, or errors introduced when -Wsystem-header was experimentally introduced. Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
Diffstat (limited to 'include/cutils/bitops.h')
-rw-r--r--include/cutils/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cutils/bitops.h b/include/cutils/bitops.h
index c26dc54..045830d 100644
--- a/include/cutils/bitops.h
+++ b/include/cutils/bitops.h
@@ -59,7 +59,7 @@ static inline void bitmask_init(unsigned int *bitmask, int num_bits)
static inline int bitmask_ffz(unsigned int *bitmask, int num_bits)
{
int bit, result;
- unsigned int i;
+ size_t i;
for (i = 0; i < BITS_TO_WORDS(num_bits); i++) {
bit = ffs(~bitmask[i]);
@@ -77,7 +77,7 @@ static inline int bitmask_ffz(unsigned int *bitmask, int num_bits)
static inline int bitmask_weight(unsigned int *bitmask, int num_bits)
{
- int i;
+ size_t i;
int weight = 0;
for (i = 0; i < BITS_TO_WORDS(num_bits); i++)