← Back to index
|
Original Bugzilla link
Bug 20241 – BitArray.bitsSet ignores length
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-09-25T07:41:56Z
Last change time
2019-10-05T12:33:44Z
Keywords
pull
Assigned to
Vladimir Panteleev
Creator
Vladimir Panteleev
Blocks
20242
Comments
Comment #0
by dlang-bugzilla — 2019-09-25T07:41:56Z
//////////// test.d //////////// import std.algorithm.comparison; import std.bitmanip; void main() { BitArray ba; ba.length = 2; ba[1] = 1; ba.length = 1; assert(ba.bitsSet.empty); } ////////////////////////////////
Comment #1
by dlang-bot — 2019-09-25T08:03:10Z
@CyberShadow created dlang/phobos pull request #7194 "BitArray fixes" fixing this issue: - Fix Issue 20241 - BitArray.bitsSet ignores length
https://github.com/dlang/phobos/pull/7194
Comment #2
by dlang-bot — 2019-10-05T12:33:44Z
dlang/phobos pull request #7194 "BitArray fixes" was merged into master: - 289149a2f1e582d8fcbe74dbead47c1a01f8201c by Vladimir Panteleev: Fix Issue 20241 - BitArray.bitsSet ignores length
https://github.com/dlang/phobos/pull/7194