Skip to content

Commit 0ca9699

Browse files
Merge pull request #55 from vovaprog/fix-decimal-delta
Fix: optional decimal delta value is not written into stream.
2 parents 488e6a1 + 7b021d0 commit 0ca9699

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mfast/coder/encoder_v2/fast_encoder_core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ void fast_encoder_core::encode_field(const T &ext_ref, delta_operator_tag,
529529
delta_storage.of_decimal.mantissa_ =
530530
cref.mantissa() - bv.of_decimal.mantissa_;
531531

532+
delta_storage.present(true);
533+
532534
decimal_cref delta(&delta_storage, cref.instruction());
533535
strm_ << T(delta);
534536

0 commit comments

Comments
 (0)