Fixed -Werror=sign-compare.
This commit is contained in:
@@ -282,7 +282,7 @@ StreamError MemoryStream::seek(std::intptr_t pos, SeekMode seekMode)
|
||||
newPos = static_cast<std::intptr_t>(data_.size()) + pos;
|
||||
break;
|
||||
}
|
||||
if (newPos < 0 || newPos > data_.size()) {
|
||||
if (newPos < 0 || newPos > static_cast<std::intptr_t>(data_.size())) {
|
||||
return StreamError::IO_ERROR;
|
||||
}
|
||||
pos_ = newPos;
|
||||
|
||||
Reference in New Issue
Block a user