We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e8334 commit 8a5ce2dCopy full SHA for 8a5ce2d
bson/src/main/org/bson/io/ByteBufferBsonInput.java
@@ -205,7 +205,7 @@ private int computeCStringLength(final int prevPos) {
205
/*
206
mask will only have the most significant bit set iff it was a 0x00 byte (0x00 becomes 0xFF because of the borrow).
207
~chunk will have bits that were originally 0 set to 1.
208
- mask & ~chunk will have the most significant bit set iff original byte was 0x00.
+ mask & ~chunk will have the most significant bit in each byte set iff original byte was 0x00.
209
*/
210
mask &= ~chunk;
211
0 commit comments