Skip to content

Commit b8eedb0

Browse files
authored
Fix Bytes.or(Bytes bytes) (fix #2)
This method previously called `this.and(bytes.internalArray()`, but it should be `this.or(bytes.internalArray()`.
1 parent abdd852 commit b8eedb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/at/favre/lib/bytes/Bytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ public Bytes and(byte[] secondArray) {
744744
* @see <a href="https://en.wikipedia.org/wiki/Bitwise_operation#OR">Bitwise operators: OR</a>
745745
*/
746746
public Bytes or(Bytes bytes) {
747-
return and(bytes.internalArray());
747+
return or(bytes.internalArray());
748748
}
749749

750750
/**

0 commit comments

Comments
 (0)