mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
Codechange: Replace C-style casts to size_t with static_cast. (#12455)
* Codechange: Replace C-style casts to size_t with static_cast. This touches only simple value-type casts. * Codechange: Replace static_cast<size_t>(-1) with SIZE_MAX Co-authored-by: Rubidium <rubidium@openttd.org>
This commit is contained in:
@@ -37,7 +37,7 @@ RandomAccessFile::RandomAccessFile(const std::string &filename, Subdirectory sub
|
||||
this->simplified_filename = name_without_path.substr(0, name_without_path.rfind('.'));
|
||||
strtolower(this->simplified_filename);
|
||||
|
||||
this->SeekTo((size_t)pos, SEEK_SET);
|
||||
this->SeekTo(static_cast<size_t>(pos), SEEK_SET);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user