mirror of https://github.com/libAthena/athena.git
General: Be explicit about the SeekOrigin type
This commit is contained in:
parent
a2f4633073
commit
d5e91ca0fe
|
@ -60,7 +60,7 @@ struct AT_SPECIALIZE_PARMS(atUint16, 42, atUint32, 87, atUint32, 2) TESTFile : p
|
|||
Value<atUint32> arrAltCount;
|
||||
Vector<atUint32, AT_DNA_COUNT(arrAltCount)> arrayAlt;
|
||||
|
||||
Seek<21, Current> seek;
|
||||
Seek<21, SeekOrigin::Current> seek;
|
||||
|
||||
Value<atUint32> arrCount2;
|
||||
Vector<TESTSubFile<ETest::ZERO>, AT_DNA_COUNT(arrCount[1] + arrCount2)> array2;
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue