File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
protobuf/src/main/java/com/fasterxml/jackson/dataformat/protobuf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -954,7 +954,7 @@ protected void _writeEnum(String str) throws IOException
954
954
// basically, _writeVInt, but very likely to be very short; but if not:
955
955
final int tag = _currField .typedTag ;
956
956
int ptr = _currPtr ;
957
- if (index > 0x7F || tag > 0x7F || (_currPtr + 1 ) >= _currBuffer .length ) {
957
+ if (index > 0x7F || tag > 0x7F || (ptr + 1 ) >= _currBuffer .length ) {
958
958
_writeVInt (index );
959
959
return ;
960
960
}
@@ -969,7 +969,7 @@ protected void _writeEnum(int index) throws IOException
969
969
// basically, _writeVInt, but very likely to be very short; but if not:
970
970
final int tag = _currField .typedTag ;
971
971
int ptr = _currPtr ;
972
- if (index > 0x7F || tag > 0x7F || (_currPtr + 1 ) >= _currBuffer .length ) {
972
+ if (index > 0x7F || tag > 0x7F || (ptr + 1 ) >= _currBuffer .length ) {
973
973
_writeVInt (index );
974
974
return ;
975
975
}
You can’t perform that action at this time.
0 commit comments