From aa902c2664cbb635a3a1ec798f1074725b3b33da Mon Sep 17 00:00:00 2001 From: Stephen Riley Date: Tue, 17 May 2022 15:25:42 -0700 Subject: [PATCH] fix warnings --- Readers/BamReader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Readers/BamReader.cs b/Readers/BamReader.cs index 1e3be34..5c6f5a0 100644 --- a/Readers/BamReader.cs +++ b/Readers/BamReader.cs @@ -106,9 +106,10 @@ private BamAlignment ReadSequence() var bamAlignment = new BamAlignment { block_size = block_size, + refID = BitConverter.ToInt32(block, offset) }; - bamAlignment.refID = BitConverter.ToInt32(block, offset); offset += 4; + offset += 4; bamAlignment.pos = BitConverter.ToInt32(block, offset) + 1; offset += 4; bamAlignment.l_read_name = block[offset]; offset += 1; bamAlignment.mapq = block[offset]; offset += 1;