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:
parent
f70875d8b2
commit
efea3f86a7
1 changed files with 2 additions and 2 deletions
|
@ -460,7 +460,7 @@ t_stat timer_reset(DEVICE *dptr) {
|
||||||
|
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
timer_unit[i].tmrnum = 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 */
|
/* 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)
|
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,
|
sim_debug(EXECUTE_MSG, &timer_dev,
|
||||||
"[%08x] Setting sanity timer to 0 for shutdown.\n", R[NUM_PC]);
|
"[%08x] Setting sanity timer to 0 for shutdown.\n", R[NUM_PC]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue