util/bitset: Allow iterating over const bitsets
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 17 Jan 2016 00:42:06 +0000 (16:42 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 24 Mar 2016 22:20:44 +0000 (15:20 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/util/bitset.h

index c452819414fae1839358c3c210dbbf810103a52c..2404ce7f630296b1c7622201e443f8b58e619406 100644 (file)
@@ -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;