Skip to content

Commit

Permalink
优化 #85
Browse files Browse the repository at this point in the history
  • Loading branch information
HbnKing committed Dec 28, 2023
1 parent cfdd920 commit b275335
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ private LongCodec(final BsonType representation) {
@Override
public void encode(final BsonWriter writer, final Long value, final EncoderContext encoderContext) {
switch (representation) {
case INT32:
writer.writeInt32(value.intValue());
break;
case INT64:
writer.writeInt64(value.longValue());
break;
case INT32:
writer.writeInt32(value.intValue());
break;
case DOUBLE:
writer.writeDouble(value.doubleValue());
break;
Expand Down

0 comments on commit b275335

Please sign in to comment.