3b2: Fix for compilation warning

Fixes a compilation warning in 3b2_sysdev.c caused by a lack of an
explicit cast from 'void *' to 'struct timer_ctr *'
This commit is contained in:
Seth Morabito 2019-06-09 14:12:02 -07:00
parent f70875d8b2
commit efea3f86a7

View file

@ -460,7 +460,7 @@ t_stat timer_reset(DEVICE *dptr) {
for (i = 0; i < 3; i++) {
timer_unit[i].tmrnum = i;
timer_unit[i].tmr = &TIMERS[i];
timer_unit[i].tmr = (void *)&TIMERS[i];
}
/* Timer 1 gate is always active */
@ -476,7 +476,7 @@ t_stat timer_reset(DEVICE *dptr) {
t_stat timer_set_shutdown(UNIT *uptr, int32 val, CONST char* cptr, void* desc)
{
struct timer_ctr *sanity = timer_unit[0].tmr;
struct timer_ctr *sanity = (struct timer_ctr *)timer_unit[0].tmr;
sim_debug(EXECUTE_MSG, &timer_dev,
"[%08x] Setting sanity timer to 0 for shutdown.\n", R[NUM_PC]);