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" 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