diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-03-26 19:56:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-03-26 19:56:04 (GMT) |
commit | 9895df71ae6ea14e09478cc243227b7b3a2139a3 (patch) | |
tree | 071cd1ad6d92211e100f179bca0ea29e6ac62959 /src/common | |
parent | d07168a24ab39cad0e3cb69ed8c5e46c7a2dcdf3 (diff) |
Extracted the logic of code nodes for better processing.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/bits.c | 2 | ||||
-rw-r--r-- | src/common/bits.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/bits.c b/src/common/bits.c index b08dcb4..90cb098 100644 --- a/src/common/bits.c +++ b/src/common/bits.c @@ -460,7 +460,7 @@ void or_bit_field(bitfield_t *dest, const bitfield_t *src) * * ******************************************************************************/ -bool test_in_bit_field(bitfield_t *field, size_t first, size_t count) +bool test_in_bit_field(const bitfield_t *field, size_t first, size_t count) { bool result; /* Valeur retrouvée à renvoyer */ size_t last; /* Point d'arrêt de la boucle */ diff --git a/src/common/bits.h b/src/common/bits.h index 074aac4..6d8ea5b 100644 --- a/src/common/bits.h +++ b/src/common/bits.h @@ -70,7 +70,7 @@ void and_bit_field(bitfield_t *, const bitfield_t *); void or_bit_field(bitfield_t *, const bitfield_t *); /* Détermine si un bit est à 1 dans un champ de bits. */ -bool test_in_bit_field(bitfield_t *, size_t, size_t); +bool test_in_bit_field(const bitfield_t *, size_t, size_t); /* Indique si deux champs de bits sont identiques ou non. */ bool is_bit_field_equal_to(const bitfield_t *, const bitfield_t *); |