diff --git a/atdna/test.hpp b/atdna/test.hpp index 608c2b1..238fb92 100644 --- a/atdna/test.hpp +++ b/atdna/test.hpp @@ -60,7 +60,7 @@ struct AT_SPECIALIZE_PARMS(atUint16, 42, atUint32, 87, atUint32, 2) TESTFile : p Value arrAltCount; Vector arrayAlt; - Seek<21, Current> seek; + Seek<21, SeekOrigin::Current> seek; Value arrCount2; Vector, AT_DNA_COUNT(arrCount[1] + arrCount2)> array2; diff --git a/include/athena/DNAOp.hpp b/include/athena/DNAOp.hpp index f777863..bb10f83 100644 --- a/include/athena/DNAOp.hpp +++ b/include/athena/DNAOp.hpp @@ -372,7 +372,7 @@ struct Read { } static void DoSeek(atInt64 amount, SeekOrigin whence, StreamT& r) { r.seek(amount, whence); } static void DoAlign(atInt64 amount, StreamT& r) { - r.seek((r.position() + amount - 1) / amount * amount, athena::Begin); + r.seek((r.position() + amount - 1) / amount * amount, athena::SeekOrigin::Begin); } }; #define __READ_S(type, endian) \ diff --git a/include/athena/DNAYaml.hpp b/include/athena/DNAYaml.hpp index 4713b14..e2e4e9d 100644 --- a/include/athena/DNAYaml.hpp +++ b/include/athena/DNAYaml.hpp @@ -116,7 +116,7 @@ bool ValidateFromYAMLStream(athena::io::IStreamReader& fin) { atUint64 pos = fin.position(); yaml_parser_set_input(reader.getParser(), (yaml_read_handler_t*)YAMLAthenaReader, &fin); bool retval = reader.ValidateClassType(DNASubtype::DNAType()); - fin.seek(pos, athena::Begin); + fin.seek(pos, athena::SeekOrigin::Begin); return retval; }