Skip to content

Commit 8a5ce2d

Browse files
vbabaninstIncMale
andauthored
Update bson/src/main/org/bson/io/ByteBufferBsonInput.java
Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
1 parent a8e8334 commit 8a5ce2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/src/main/org/bson/io/ByteBufferBsonInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private int computeCStringLength(final int prevPos) {
205205
/*
206206
mask will only have the most significant bit set iff it was a 0x00 byte (0x00 becomes 0xFF because of the borrow).
207207
~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.
208+
mask & ~chunk will have the most significant bit in each byte set iff original byte was 0x00.
209209
*/
210210
mask &= ~chunk;
211211
/*

0 commit comments

Comments
 (0)