Fixed warnings building with Visual Studio

This commit is contained in:
Sam Lantinga
2021-05-25 10:34:04 -07:00
parent 3fcaf5b4b3
commit db146e66c6
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ static void DetectWave##typ##Devs(void) { \
* is not provided by the caps struct! At best, we get possible \
* sample formats, but not an _active_ format. \
*/ \
spec.channels = caps.wChannels; \
spec.channels = (Uint8)caps.wChannels; \
SDL_AddAudioDevice((int) iscapture, name, &spec, (void *) ((size_t) i+1)); \
SDL_free(name); \
} \