From e7e73ef72c6b4c642233d61e930a56336bbd3ea8 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 30 May 2024 13:18:50 +0100 Subject: [PATCH] Fix parameter types in lcd_draw_line --- examples/debug/peanut-debug.c | 2 +- examples/mini_fb/peanut_minifb.c | 2 +- examples/sdl2/peanut_sdl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/debug/peanut-debug.c b/examples/debug/peanut-debug.c index 709a3c7..daa7aa4 100644 --- a/examples/debug/peanut-debug.c +++ b/examples/debug/peanut-debug.c @@ -174,7 +174,7 @@ void gb_error(struct gb_s *gb, const enum gb_error_e gb_err, const uint16_t val) * Draws scanline into framebuffer. */ void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160], - const uint_least8_t line) + const uint_fast8_t line) { struct priv_t *priv = gb->direct.priv; diff --git a/examples/mini_fb/peanut_minifb.c b/examples/mini_fb/peanut_minifb.c index 7f7d8c6..bfae731 100644 --- a/examples/mini_fb/peanut_minifb.c +++ b/examples/mini_fb/peanut_minifb.c @@ -109,7 +109,7 @@ void gb_error(struct gb_s *gb, const enum gb_error_e gb_err, const uint16_t val) * Draws scanline into framebuffer. */ void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160], - const uint_least8_t line) + const uint_fast8_t line) { struct priv_t *priv = gb->direct.priv; const uint32_t palette[] = { 0xFFFFFF, 0xA5A5A5, 0x525252, 0x000000 }; diff --git a/examples/sdl2/peanut_sdl.c b/examples/sdl2/peanut_sdl.c index 0701c8f..24ab521 100644 --- a/examples/sdl2/peanut_sdl.c +++ b/examples/sdl2/peanut_sdl.c @@ -540,7 +540,7 @@ void manual_assign_palette(struct priv_t *priv, uint8_t selection) * Draws scanline into framebuffer. */ void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160], - const uint_least8_t line) + const uint_fast8_t line) { struct priv_t *priv = gb->direct.priv;