mirror of
https://github.com/libAthena/athena.git
synced 2025-12-08 13:15:05 +00:00
General: Be explicit about the SeekOrigin type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user