Skip to content

Commit

Permalink
(MSVC) MSVC build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Dec 7, 2016
1 parent 3cd682c commit f6dcfd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/SPIRV-Cross
2 changes: 1 addition & 1 deletion input/input_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ void state_tracker_update_input(uint16_t *input1, uint16_t *input2)
{
struct retro_keybind *general_binds = settings->input.binds[i];
struct retro_keybind *auto_binds = settings->input.autoconf_binds[i];
enum analog_dpad_mode dpad_mode = settings->input.analog_dpad_mode[i];
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->input.analog_dpad_mode[i];

if (dpad_mode == ANALOG_DPAD_NONE)
continue;
Expand Down
6 changes: 3 additions & 3 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static enum runloop_state runloop_check_state(
CORE_TYPE_DUMMY,
CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE,
NULL, NULL))
return -1;
return RUNLOOP_STATE_QUIT;

/* Loads dummy core instead of exiting RetroArch completely.
* Aborts core shutdown if invoked. */
Expand Down Expand Up @@ -1177,7 +1177,7 @@ int runloop_iterate(unsigned *sleep_ms)
{
struct retro_keybind *general_binds = settings->input.binds[i];
struct retro_keybind *auto_binds = settings->input.autoconf_binds[i];
enum analog_dpad_mode dpad_mode = settings->input.analog_dpad_mode[i];
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->input.analog_dpad_mode[i];

if (dpad_mode == ANALOG_DPAD_NONE)
continue;
Expand All @@ -1201,7 +1201,7 @@ int runloop_iterate(unsigned *sleep_ms)
{
struct retro_keybind *general_binds = settings->input.binds[i];
struct retro_keybind *auto_binds = settings->input.autoconf_binds[i];
enum analog_dpad_mode dpad_mode = settings->input.analog_dpad_mode[i];
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->input.analog_dpad_mode[i];

if (dpad_mode == ANALOG_DPAD_NONE)
continue;
Expand Down

0 comments on commit f6dcfd2

Please sign in to comment.