libretro / libretro-atari800

atari800 3.1.0 for libretro/libco WIP
15 stars 43 forks source link

Cast SNDBUF to UBYTE on callback to fix gcc-14.1 compile #95

Closed heitbaum closed 2 months ago

heitbaum commented 2 months ago

Fixes gcc-14,1 error

libretro/core-mapper.c: In function 'retro_sound_update': libretro/core-mapper.c:158:22: error: passing argument 1 of 'Sound_Callback' from incompatible pointer type [-Wincompatible-pointer-types] 158 Sound_Callback(SNDBUF, 102422); ^~
short int *

In file included from ./atari800/src/platform.h:11, from libretro/core-mapper.c:4: ./atari800/src/sound.h:75:28: note: expected 'unsigned char ' but argument is of type 'short int ' 75 | void Sound_Callback(UBYTE *buffer, unsigned int size);

heitbaum commented 2 months ago

Duplicate of #92