Skip to content

Commit

Permalink
Fix implicit cast warning as error on Windows builds (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur authored Sep 18, 2024
1 parent 0960d2a commit 8e715d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vera/vera_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e715d6

Please sign in to comment.