Skip to content

Commit f7dd005

Browse files
committed
Add check if the sequence is optional, if it is not persent encode null 0x80 and false in the presence map.
1 parent 6171f6f commit f7dd005

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mfast/coder/encoder_v2/fast_encoder_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ inline void fast_encoder_core::encode_field(const T &ext_ref,
265265
this->current_->set_next_bit(false);
266266
if(!std::is_same<typename T::length_type::operator_category, constant_operator_tag>::value &&
267267
!std::is_same<typename T::length_type::operator_category, copy_operator_tag>::value &&
268-
!std::is_same<typename T::length_type::operator_category, default_operator_tag>::value )
268+
!std::is_same<typename T::length_type::operator_category, default_operator_tag>::value)
269269
strm_.encode_null();
270270
return;
271271
}

0 commit comments

Comments
 (0)