From: Jason Ekstrand Date: Sun, 17 Jan 2016 00:42:06 +0000 (-0800) Subject: util/bitset: Allow iterating over const bitsets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a41d947319f2d2999b4b5442ce20443d7c3cf3a;p=mesa.git util/bitset: Allow iterating over const bitsets Reviewed-by: Jordan Justen --- diff --git a/src/util/bitset.h b/src/util/bitset.h index c452819414f..2404ce7f630 100644 --- a/src/util/bitset.h +++ b/src/util/bitset.h @@ -98,7 +98,7 @@ __bitset_ffs(const BITSET_WORD *x, int n) static inline unsigned __bitset_next_set(unsigned i, BITSET_WORD *tmp, - BITSET_WORD *set, unsigned size) + const BITSET_WORD *set, unsigned size) { unsigned bit, word;