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