Fix bm_huge initialization for 64-bit targets (gctest)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Dec 2016 21:39:10 +0000 (00:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Dec 2016 21:39:10 +0000 (00:39 +0300)
commit014d92d6595edb1ff32ff57cb8c9d79fea796e70
treecd90dcf6de8ba37fbb8a4c476185e29af532419e
parent97861773a09cef7461945ccff20d3d26217a93f9
Fix bm_huge initialization for 64-bit targets (gctest)

* tests/test.c (bm_huge): Make array size depend on word size
(5 elements for 64-bit targets); initialize elements (except the last
one) to -1 instead of 0xffffffff (so that all bits are ones even on
a 64-bit target); initialize last element to ((word)-1)>>8 instead of
0x00ffffff value.
* tests/test.c (typed_test): Fail if bm_huge descriptor contains wrong
bit values at certain positions (as it had before this fix).
tests/test.c