D-Programming-Language/phobos — pull request #1254 by redstar (2013-04-12 05:16:23+00:00)
Title: Fix endian issue in std.bitmanip

BitArray uses an array of `size_t` elements but `opEquals()` and `opCmp()` cast it to an array of `ubyte` elements. On a big endian architecture the bytes are accessed in wrong order.
The solution is to always use `size_t` elements.