Fix GCC 14 compilation (#193)

This commit is contained in:
Francisco Javier Trujillo Mata 2024-09-07 12:21:43 +02:00 committed by GitHub
parent 17589a6b31
commit 0b43954c75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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))
{