Project

General

Profile

Actions

Bug #10299

closed

Probably, a bug in BitVector.isAll{Set,Reset}

Added by Alexander Kamkin over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Bit Vector
Target version:
Start date:
04/22/2020
Due date:
% Done:

100%

Estimated time:
Detected in build:
git
Platform:
Published in build:
0.4.34-beta-200916

Description

Does it work properly if the bit length is not multiple of 8?

  public final boolean isAllSet() {
    for(int index = 0; index < this.getByteSize(); ++index) {
      if (-1 != this.getByte(index)) {
        return false;
      }
    }

    return true;
  }
</post>
Actions #1

Updated by Sergey Smolov over 4 years ago

  • Status changed from New to Open

The implementation is incorrect. Will be fixed soon.

Actions #2

Updated by Sergey Smolov over 4 years ago

  • Status changed from Open to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Sergey Smolov over 4 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 0.4.34-beta-200916
Actions

Also available in: Atom PDF