From 8e715d62b4432ae5c776e9f62443bf650cd98be1 Mon Sep 17 00:00:00 2001 From: mooinglemur Date: Tue, 17 Sep 2024 17:39:20 -0700 Subject: [PATCH] Fix implicit cast warning as error on Windows builds (#118) --- src/vera/vera_video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vera/vera_video.cpp b/src/vera/vera_video.cpp index 96ed32a..39836ce 100644 --- a/src/vera/vera_video.cpp +++ b/src/vera/vera_video.cpp @@ -514,7 +514,7 @@ static void render_sprite_line(const uint16_t y) const uint8_t *bitmap_data = video_ram + props->sprite_address + (eff_sy << (props->sprite_width_log2 - (1 - props->color_mode))); - const uint16_t width = std::min((uint32_t)props->sprite_width, (uint32_t)64); + const uint16_t width = (uint16_t)std::min((uint32_t)props->sprite_width, (uint32_t)64); uint8_t unpacked_sprite_line[64]; if (props->color_mode == 0) { // 4bpp