Skip to content

Commit 31dbdec

Browse files
committed
FIX: Fix DbnFsm::consume fill logic
1 parent 0c5dce6 commit 31dbdec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- Added `MergeRecordDecoder::with_hints` that allows hinting the minimum timestamp from
77
each decoder
88

9+
### Bug fixes
10+
- Fixed bug in `DbnFsm::consume`, though it should have no impact
11+
912
## 0.43.0 - 2025-10-22
1013

1114
### Enhancements

rust/dbn/src/decode/dbn/fsm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl DbnFsm {
462462
fn consume(&mut self, read: usize, compat: usize, compat_fill: usize, expand_compat: bool) {
463463
self.buffer.consume(read);
464464
if compat_fill > 0 {
465-
self.compat_buffer.fill(compat);
465+
self.compat_buffer.fill(compat_fill);
466466
}
467467
if compat > 0 {
468468
self.compat_buffer.consume(compat);

0 commit comments

Comments
 (0)