mirror of
https://github.com/simh/simh.git
synced 2026-04-27 12:28:49 +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:
@@ -861,7 +861,8 @@ return SCPE_ARG;
|
||||
|
||||
char *get_addr (char *cptr, t_addr addr, t_bool ext, int32 cflag, int32 *val)
|
||||
{
|
||||
int32 d, r, x, pflag;
|
||||
int32 d, x, pflag;
|
||||
t_stat r;
|
||||
char gbuf[CBUFSIZE];
|
||||
int32 dmax, dsign;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user