[Issue 10948] BitArray.opEquals is invalid

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 31 03:37:12 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=10948

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/9211f1aad1bfdb306b1abcd67b278fda9cda78d2
fix Issue 10948 - BitArray.opEquals is invalid

https://issues.dlang.org/show_bug.cgi?id=10948

Implemented the fix as proposed by nbelov on Bugzilla. Included are unit tests
which would have triggered this bug and also fixed it in opCmp.

The issue was that the 32 bit expression "(1 << n)" was treated as being of
size_t, which lead to incorrect bit patterns on 64 bit environments.

https://github.com/D-Programming-Language/phobos/commit/48afca0253bf51068bd64d26db15152e6a663204
Merge pull request #2204 from jblume/issue-10948

fix Issue 10948 - BitArray.opEquals is invalid

--


More information about the Digitalmars-d-bugs mailing list