diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-04-20 02:19:19 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-04-20 02:20:35 +0300 |
commit | 02f010579487aa9e0b51a9c0322bf8edf57a7c95 (patch) | |
tree | c0b2aeaf2f916852d3b2149d7243d594cb9f309c /typd_mlc.c | |
parent | 228e9b246b64464a51e08a9ad1295018ddd0aff9 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |