From ad45dadb0b5e5f1c0780cf1f0cf8139535992712 Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Thu, 11 Jan 2024 09:15:52 +0000 Subject: [PATCH] Sort out a couple of irritating warnings. --- inc/Rom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Rom.h b/inc/Rom.h index c988863..0cc7519 100644 --- a/inc/Rom.h +++ b/inc/Rom.h @@ -41,9 +41,9 @@ namespace EightBit { const auto size = end - start; if (limit < 0) - limit = size - readOffset; + limit = static_cast(size - readOffset); - const size_t extent = limit + writeOffset; + const size_t extent = static_cast(limit) + writeOffset; if (m_bytes.size() < extent) m_bytes.resize(extent);