]> granicus.if.org Git - gc/commit
Workaround 'checking if unsigned expression < 0' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Thu, 7 Feb 2019 17:43:13 +0000 (20:43 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 7 Feb 2019 17:43:13 +0000 (20:43 +0300)
commita29e39d93ce6379bdfc85b3b95c7b1fb396f1f93
treeabe8386b771232c2e2934139c8cb096987121155
parent7ecce85ca3a19a6d217e521d585158293b715c54
Workaround 'checking if unsigned expression < 0' cppcheck warnings

* alloc.c [CPPCHECK] (GC_compute_heap_usage_percent): Replace
GC_WORD_MAX/100 with (GC_WORD_MAX>>1)/50; add comment.
* os_dep.c [!AMIGA && !HAIKU && !OPENBSD && !OS2 && !MSWIN32]
(GC_get_main_stack_base): Skip assertion on result if CPPCHECK.
alloc.c
os_dep.c