From 89d7e94f77c449568438fb545cd4415f8737efb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Sun, 12 Apr 2020 17:23:31 +1000 Subject: [PATCH 1/2] Increment version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 11649a7..f45120b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "XAM" uuid = "d759349c-bcba-11e9-07c2-5b90f8f05f7c" authors = ["Kenta Sato ", "Ben J. Ward ", "CiarĂ¡n O'Mara "] -version = "0.2.1" +version = "0.2.2" [deps] Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" From 3e1a8023721531f2cb64de9db1bb40234d757733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Sun, 12 Apr 2020 17:28:16 +1000 Subject: [PATCH 2/2] Ensure fields are empty --- src/sam/reader.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sam/reader.jl b/src/sam/reader.jl index 3270957..24152c4 100644 --- a/src/sam/reader.jl +++ b/src/sam/reader.jl @@ -83,6 +83,8 @@ end function Base.read!(rdr::Reader, rec::Record) + empty!(rec.fields) #Note: data is pushed to the fields field, and other field data is overwritten. #TODO: distinguish for inplace reading pattern. + cs, ln, f = readrecord!(rdr.state.stream, rec, (rdr.state.state, rdr.state.linenum)) rdr.state.state = cs