From 9bfd0d901c6c291084155eeac3e565ae2bf9fb4b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 22 Jul 2024 05:46:55 -0700 Subject: [PATCH] Audio device IDs are unsigned --- include/SDL3/SDL_audio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL3/SDL_audio.h b/include/SDL3/SDL_audio.h index 6a7d77854e..629cc3a95d 100644 --- a/include/SDL3/SDL_audio.h +++ b/include/SDL3/SDL_audio.h @@ -287,7 +287,7 @@ typedef Uint32 SDL_AudioDeviceID; * * \since This macro is available since SDL 3.0.0. */ -#define SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK ((SDL_AudioDeviceID) 0xFFFFFFFF) +#define SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK ((SDL_AudioDeviceID) 0xFFFFFFFFu) /** * A value used to request a default recording audio device. @@ -298,7 +298,7 @@ typedef Uint32 SDL_AudioDeviceID; * * \since This macro is available since SDL 3.0.0. */ -#define SDL_AUDIO_DEVICE_DEFAULT_RECORDING ((SDL_AudioDeviceID) 0xFFFFFFFE) +#define SDL_AUDIO_DEVICE_DEFAULT_RECORDING ((SDL_AudioDeviceID) 0xFFFFFFFEu) /** * Format specifier for audio data.