Project

General

Profile

Bug #10299

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

Added by Alexander Kamkin 4 months ago. Updated 3 months ago.

Status:
Resolved
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:

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>

Associated revisions

Revision fdae5acd (diff)
Added by Sergey Smolov 3 months ago

bitvector: fix isAll{Set,Reset} (#10299)

Signed-off-by: Sergey Smolov <>

History

#1

Updated by Sergey Smolov 4 months ago

  • Status changed from New to Open

The implementation is incorrect. Will be fixed soon.

#2

Updated by Sergey Smolov 3 months ago

  • % Done changed from 0 to 100
  • Status changed from Open to Resolved

Also available in: Atom PDF