From 3ef7d2d68ecc8ff9ca839c5c068e7d7ce7768583 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Wed, 29 May 2024 16:52:29 -0700 Subject: [PATCH] Fixing mismatched type declaration avoids cast from DLword* to short* --- src/initdsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initdsp.c b/src/initdsp.c index 05466af..a363304 100644 --- a/src/initdsp.c +++ b/src/initdsp.c @@ -137,7 +137,7 @@ void clear_display(void) { #else /* COLOR */ void clear_display(void) { - short *word; + DLword *word; int w, h; if (MonoOrColor == MONO_SCREEN) { #ifndef DISPLAYBUFFER @@ -150,7 +150,7 @@ void clear_display(void) { 0); #endif /* DISPLAYBUFFER */ } else { /* MonoOrColo is COLOR_SCREEN */ - word = (short *)ColorDisplayRegion68k; + word = ColorDisplayRegion68k; for (h = displayheight; (h--);) { for (w = DisplayRasterWidth * 8; (w--);) { *word++ = 0; } } /* end for(h) */