]> granicus.if.org Git - gc/commit
Add assertion to LONG_MULT and remove useless assert in PUSH_CONTENTS_HDR
authorIvan Maidanski <ivmai@mail.ru>
Sun, 23 Dec 2012 10:47:09 +0000 (14:47 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 23 Dec 2012 10:47:09 +0000 (14:47 +0400)
commit332900a5542796a327a4b899042847095d9b7cc1
tree12aa231881cd8550525804c9da8dc41df1124b8f
parent82fd788a2698a00943102680ef7599314283e61c
Add assertion to LONG_MULT and remove useless assert in PUSH_CONTENTS_HDR

* include/private/gc_pmark.h (LONG_MULT): Add static assertion that
the size of variable is large enough to hold multiplication result.
* include/private/gc_pmark.h (PUSH_CONTENTS_HDR): Remove useless
assertion check for a unsigned "high_prod" value to be non-negative
(only if MARK_BIT_PER_OBJ).
include/private/gc_pmark.h