mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-13 15:30:33 +00:00
Sort out a couple of irritating warnings.
This commit is contained in:
parent
81f5efb49a
commit
ad45dadb0b
@ -41,9 +41,9 @@ namespace EightBit {
|
||||
|
||||
const auto size = end - start;
|
||||
if (limit < 0)
|
||||
limit = size - readOffset;
|
||||
limit = static_cast<int>(size - readOffset);
|
||||
|
||||
const size_t extent = limit + writeOffset;
|
||||
const size_t extent = static_cast<size_t>(limit) + writeOffset;
|
||||
if (m_bytes.size() < extent)
|
||||
m_bytes.resize(extent);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user