This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
The following commit(s) were added to refs/heads/master by this push:
new cd9ec668 Use |=
cd9ec668 is described below
commit cd9ec6688e6f99853fbf77b828ef98a61c418478
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 15 10:43:07 2024 -0500
Use |=
---
src/main/java/org/apache/commons/imaging/mylzw/MyBitOutputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/imaging/mylzw/MyBitOutputStream.java
b/src/main/java/org/apache/commons/imaging/mylzw/MyBitOutputStream.java
index ccbea5fe..31c8a275 100644
--- a/src/main/java/org/apache/commons/imaging/mylzw/MyBitOutputStream.java
+++ b/src/main/java/org/apache/commons/imaging/mylzw/MyBitOutputStream.java
@@ -74,7 +74,7 @@ final class MyBitOutputStream extends FilterOutputStream {
bitCache = bitCache << sampleBits | value;
} else {
// LSB, so add to left
- bitCache = bitCache | value << bitsInCache;
+ bitCache |= value << bitsInCache;
}
bitsInCache += sampleBits;