April 12, 2013 [phobos] [D-Programming-Language/phobos] 17f3fe: Fix endian issue in std.bitmanip | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 17f3fe27d55f7aba4e55269a4ee85eaaca519e70 https://github.com/D-Programming-Language/phobos/commit/17f3fe27d55f7aba4e55269a4ee85eaaca519e70 Author: kai <kai@redstar.de> Date: 2013-04-11 (Thu, 11 Apr 2013) Changed paths: M std/bitmanip.d Log Message: ----------- 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. Commit: 76f9b07ece25ced7d5ada03d35ac076e17a7c3c5 https://github.com/D-Programming-Language/phobos/commit/76f9b07ece25ced7d5ada03d35ac076e17a7c3c5 Author: Alex Rønne Petersen <alex@alexrp.com> Date: 2013-04-12 (Fri, 12 Apr 2013) Changed paths: M std/bitmanip.d Log Message: ----------- Merge pull request #1254 from redstar/endianbitmanip Fix endian issue in std.bitmanip Compare: https://github.com/D-Programming-Language/phobos/compare/0927fd2d37fd...76f9b07ece25 |
Copyright © 1999-2021 by the D Language Foundation