mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 11:50:24 +00:00
base: fix accessibility of enum in bit_array.h
avoids warning by clang: error: 'BITS_PER_WORD' is a private member of 'Genode::Bit_array_base' Issue #3022
This commit is contained in:
parent
9ee3843f35
commit
4b62f091a9
@ -35,13 +35,15 @@ class Genode::Bit_array_base
|
|||||||
class Invalid_clear : public Exception {};
|
class Invalid_clear : public Exception {};
|
||||||
class Invalid_set : public Exception {};
|
class Invalid_set : public Exception {};
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
BITS_PER_BYTE = 8UL,
|
BITS_PER_BYTE = 8UL,
|
||||||
BITS_PER_WORD = sizeof(addr_t) * BITS_PER_BYTE
|
BITS_PER_WORD = sizeof(addr_t) * BITS_PER_BYTE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
unsigned _bit_cnt;
|
unsigned _bit_cnt;
|
||||||
unsigned _word_cnt;
|
unsigned _word_cnt;
|
||||||
addr_t *_words;
|
addr_t *_words;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user