]> granicus.if.org Git - gc/commit
Eliminate 'potential unsafe sign check of a bitwise operation' code defect
authorIvan Maidanski <ivmai@mail.ru>
Fri, 31 Aug 2018 16:14:18 +0000 (19:14 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Aug 2018 16:14:18 +0000 (19:14 +0300)
commitaf00c4da32c855867936409d920582cc773f0d01
tree978495c12b2ff2cf0748cad73c20fd0e3a68f2fb
parentb3eee1426656bbd3efd7468fd3f6880753847e19
Eliminate 'potential unsafe sign check of a bitwise operation' code defect

* mark.c [!OS2] (GC_mark_from): Cast mark_stack_top-mark_stack to word
first, and cast bitwise OR operation result to signed_word, so that not
to apply bitwise OR operation to the value of ptrdiff_t.
mark.c