mirror of
https://github.com/simh/simh.git
synced 2026-04-24 19:33:40 +00:00
Cleanup for warning messages produced by the clang C compiler. Mostly adding parentheses in conditional assignments and clarification parentheses in complex boolean expressions.
This commit is contained in:
10
S3/s3_disk.c
10
S3/s3_disk.c
@@ -298,7 +298,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
addr++;
|
||||
}
|
||||
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -349,7 +349,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0800;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -392,7 +392,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0400;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
@@ -434,7 +434,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
diskerr[disk] |= 0x0400;
|
||||
break;
|
||||
}
|
||||
if ((sect == 55) ) {
|
||||
if (sect == 55) {
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > 0) diskerr[disk] |= 0x0020;
|
||||
@@ -486,7 +486,7 @@ int32 dsk (int32 disk, int32 op, int32 m, int32 n, int32 data)
|
||||
found[disk] = 1;
|
||||
if (res == data)
|
||||
break;
|
||||
if ((sect == 55) ) { /* HJS MODS */
|
||||
if (sect == 55) { /* HJS MODS */
|
||||
S = sect;
|
||||
N = nsects - i - 2;
|
||||
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
|
||||
|
||||
Reference in New Issue
Block a user