From 0b43954c75760d00737120db9d5009813778c7ae Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Sat, 7 Sep 2024 12:21:43 +0200 Subject: [PATCH] Fix GCC 14 compilation (#193) --- src/opl.c | 2 +- src/v_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opl.c b/src/opl.c index 4bc2abe..5a0ef92 100644 --- a/src/opl.c +++ b/src/opl.c @@ -248,7 +248,7 @@ static void FillBuffer(int16_t *buffer, unsigned int nsamples) unsigned int i; int sampval; - Chip__GenerateBlock2(&opl_chip, nsamples, mix_buffer); + Chip__GenerateBlock2(&opl_chip, nsamples, (int32_t *)mix_buffer); // Mix into the destination buffer, doubling up into stereo. diff --git a/src/v_video.c b/src/v_video.c index 124992f..7704493 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -396,7 +396,7 @@ static void V_DrawMemPatch(int x, int y, int scrn, const rpatch_t *patch, R_SetDefaultDrawColumnVars(&dcvars); drawvars.short_topleft = (uint16_t*)screens[scrn].data; - drawvars.int_topleft = (uint32_t*)screens[scrn].data; + drawvars.int_topleft = (unsigned int*)screens[scrn].data; if (!(flags & VPT_STRETCH)) {