Sort out a couple of irritating warnings.

This commit is contained in:
Adrian Conlon 2024-01-11 09:15:52 +00:00
parent 81f5efb49a
commit ad45dadb0b
1 changed files with 2 additions and 2 deletions

View File

@ -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);