From 16baa05aec8a94396569a5f205e91aa8fa765670 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 17 Jan 2024 09:43:44 -0500 Subject: [PATCH] Correct type. --- Machines/Apple/AppleIIgs/Video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Machines/Apple/AppleIIgs/Video.cpp b/Machines/Apple/AppleIIgs/Video.cpp index 8602268e7..ffacbdb5e 100644 --- a/Machines/Apple/AppleIIgs/Video.cpp +++ b/Machines/Apple/AppleIIgs/Video.cpp @@ -279,7 +279,10 @@ void Video::output_row(int row, int start, int end) { line_control_ = ram_[0x19d00 + row]; const int palette_base = (line_control_ & 15) * 32 + 0x19e00; for(int c = 0; c < 16; c++) { - const int entry = ram_[palette_base + (c << 1)] | (ram_[palette_base + (c << 1) + 1] << 8); + const auto entry = uint16_t( + ram_[palette_base + (c << 1)] | + (ram_[palette_base + (c << 1) + 1] << 8) + ); palette_[c] = convulve(entry); }