mirror of
https://github.com/simh/simh.git
synced 2026-05-03 14:38:45 +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:
@@ -475,8 +475,8 @@ static char *messages[0x20] = {
|
||||
uint8 I8272_Write(const uint32 Addr, uint8 cData)
|
||||
{
|
||||
I8272_DRIVE_INFO *pDrive;
|
||||
unsigned int flags = 0;
|
||||
unsigned int readlen;
|
||||
uint32 flags = 0;
|
||||
uint32 readlen;
|
||||
uint8 disk_read = 0;
|
||||
int32 i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user