Fix building with stricter Android NDK gcc 4.9

This commit is contained in:
Aaron Culliney 2016-08-21 08:38:43 -10:00
parent 1a6c1292f3
commit 35e3d6a969
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ static SY6522_AY8910 g_MB[NUM_AY8910];
// Timer vars
static unsigned long g_n6522TimerPeriod = 0;
static const unsigned int TIMERDEVICE_INVALID = -1;
#define TIMERDEVICE_INVALID -1
static unsigned int g_nMBTimerDevice = TIMERDEVICE_INVALID; // SY6522 device# which is generating timer IRQ
static unsigned long g_uLastCumulativeCycles = 0;

View File

@ -1266,7 +1266,7 @@ bool c_debugger_should_break() {
debugger_go () - step into or step over commands
------------------------------------------------------------------------- */
int debugger_go(stepping_struct_t s) {
stepping_struct = s;
memcpy(&stepping_struct, &s, sizeof(s));
int ch = begin_cpu_stepping();
@ -1281,7 +1281,7 @@ int debugger_go(stepping_struct_t s) {
}
#endif
stepping_struct = (stepping_struct_t){ 0 };
memset(&stepping_struct, 0x0, sizeof(s));
return ch;
}