summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-04-20 02:19:19 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-04-20 02:20:35 +0300
commit02f010579487aa9e0b51a9c0322bf8edf57a7c95 (patch)
treec0b2aeaf2f916852d3b2149d7243d594cb9f309c /typd_mlc.c
parent228e9b246b64464a51e08a9ad1295018ddd0aff9 (diff)
downloadbdwgc-02f010579487aa9e0b51a9c0322bf8edf57a7c95.tar.gz
Eliminate 'boolean result used in bitwise operation' cppcheck warning
* finalize.c (GC_push_finalizer_structures): Replace (word)&sym to (word)(&sym). * typd_mlc.c (GC_add_ext_descriptor): Likewise.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index e7df05b3..7fb964a8 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -137,7 +137,7 @@ STATIC signed_word GC_add_ext_descriptor(const word * bm, word nbits)
word ed_size = GC_ed_size;
if (ed_size == 0) {
- GC_ASSERT((word)&GC_ext_descriptors % sizeof(word) == 0);
+ GC_ASSERT((word)(&GC_ext_descriptors) % sizeof(word) == 0);
GC_push_typed_structures = GC_push_typed_structures_proc;
UNLOCK();
new_size = ED_INITIAL_SIZE;