Fixed some more or less valid clang and clang-tidy errors.
This commit is contained in:
@@ -169,6 +169,9 @@ StreamError FileStream::seek(std::intptr_t pos, SeekMode seekMode)
|
||||
case SeekMode::RELATIVE_TO_END:
|
||||
origin = SEEK_END;
|
||||
break;
|
||||
default:
|
||||
assert(!"Invalid value passed as seekMode!");
|
||||
return StreamError::UNKNOWN_ERROR;
|
||||
}
|
||||
const int result = std::fseek(handle, static_cast<long>(pos), origin);
|
||||
if (result != 0 || std::ferror(handle)) {
|
||||
|
||||
Reference in New Issue
Block a user