mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
Silence some warnings
This commit is contained in:
parent
d7ff2de094
commit
e2be9e659d
@ -986,10 +986,10 @@ bool audio_driver_mixer_add_stream(audio_mixer_stream_params_t *params)
|
||||
switch (params->type)
|
||||
{
|
||||
case AUDIO_MIXER_TYPE_WAV:
|
||||
handle = audio_mixer_load_wav(buf, params->bufsize);
|
||||
handle = audio_mixer_load_wav(buf, (int32_t)params->bufsize);
|
||||
break;
|
||||
case AUDIO_MIXER_TYPE_OGG:
|
||||
handle = audio_mixer_load_ogg(buf, params->bufsize);
|
||||
handle = audio_mixer_load_ogg(buf, (int32_t)params->bufsize);
|
||||
break;
|
||||
case AUDIO_MIXER_TYPE_NONE:
|
||||
free(buf);
|
||||
|
@ -264,7 +264,7 @@ static bool gl_glsl_compile_shader(glsl_shader_data_t *glsl,
|
||||
if (existing_version)
|
||||
{
|
||||
const char* version_extra = "";
|
||||
unsigned version_no = strtoul(existing_version + 8, (char**)&program, 10);
|
||||
unsigned version_no = (unsigned)strtoul(existing_version + 8, (char**)&program, 10);
|
||||
#ifdef HAVE_OPENGLES
|
||||
if (version_no < 130)
|
||||
version_no = 100;
|
||||
|
@ -563,7 +563,7 @@ bool netplay_handshake_sync(netplay_t *netplay,
|
||||
/* Now send the device info */
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
{
|
||||
device = htonl(input_config_get_device(i));
|
||||
device = htonl(input_config_get_device((unsigned)i));
|
||||
if (!netplay_send(&connection->send_packet_buffer, connection->fd,
|
||||
&device, sizeof(device)))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user