Skip to content

Commit ac0e40c

Browse files
committed
Fix a bug in the compression
1 parent 7e94285 commit ac0e40c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flatgfa/src/flatgfa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,12 @@ impl<'a, P: StoreFamily<'a>> GFAStore<'a, P> {
457457
_ => panic!("Not a Nucleotide!"),
458458
};
459459
if high_nibble_end {
460+
high_nibble_end = false;
460461
if i == seq.len() - 1 {
461462
self.seq_data.add(converted);
462463
break;
463464
}
464465
combined_item = converted;
465-
high_nibble_end = false;
466466
} else {
467467
combined_item |= converted << 4;
468468
self.seq_data.add(combined_item);

0 commit comments

Comments
 (0)