mirror of
https://github.com/open-simh/simh.git
synced 2026-05-05 07:33:56 +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:
@@ -908,7 +908,7 @@ do {
|
||||
if (uptr->FUNC == FCCY_READ) { /* read? */
|
||||
awc = fxread (tbuf, sizeof(uint16), DKP_NUMWD, uptr->fileref);
|
||||
for ( ; awc < DKP_NUMWD; awc++) tbuf[awc] = 0;
|
||||
if (err = ferror (uptr->fileref))
|
||||
if ((err = ferror (uptr->fileref)))
|
||||
break;
|
||||
for (dx = 0; dx < DKP_NUMWD; dx++) { /* loop thru buffer */
|
||||
pa = MapAddr (dkp_map, (dkp_ma & AMASK));
|
||||
@@ -924,7 +924,7 @@ do {
|
||||
dkp_ma = (dkp_ma + 1) & AMASK;
|
||||
}
|
||||
fxwrite (tbuf, sizeof(int16), DKP_NUMWD, uptr->fileref);
|
||||
if (err = ferror (uptr->fileref))
|
||||
if ((err = ferror (uptr->fileref)))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user