mirror of https://github.com/mosra/magnum.git
Browse Source
The
(size - 1)/8 + 1
expression is the same as
(size - 1)/8 + 8/8
which is the same as the following in all cases except when size == 0,
for which it underflows:
(size - 1 + 8)/8 == (size + 7)/8
To avoid needless surprises, I'm changing to what's used everywhere
else, including the BitArray, and also reusing the already-calculated
value for the _data array size.
pull/617/head
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue