mirror of
https://github.com/simh/simh.git
synced 2026-04-26 03:57:11 +00:00
Cleaned up parameter declarations in all simulators to achieve clean compiles on all platforms
Very minor in all cases, but the strange case of swtp_cpu.c This module used expressions of the form: PC = ++PC & ADDRMASK; Officially, the C language says that expressions which modify the same variable in more than one place have undefined behavior. These were changed to the legal form which performs the desired action: PC = (PC + 1) & ADDRMASK;
This commit is contained in:
@@ -130,7 +130,7 @@ t_stat rx_wr (int32 data, int32 PA, int32 access);
|
||||
t_stat rx_svc (UNIT *uptr);
|
||||
t_stat rx_reset (DEVICE *dptr);
|
||||
t_stat rx_boot (int32 unitno, DEVICE *dptr);
|
||||
void rx_done (int esr_flags, int new_ecode);
|
||||
void rx_done (int32 esr_flags, int32 new_ecode);
|
||||
|
||||
/* RX11 data structures
|
||||
|
||||
|
||||
Reference in New Issue
Block a user