mirror of
https://github.com/simh/simh.git
synced 2026-05-05 07:23:34 +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:
@@ -594,7 +594,7 @@ if ((temp = getc (ptr_unit.fileref)) == EOF) { /* end of file? */
|
||||
if (ptr_state == 0) { /* ASCII */
|
||||
if (ptr_unit.flags & UNIT_RASCII) { /* want parity? */
|
||||
ptr_unit.buf = temp = temp & 0177; /* parity off */
|
||||
while (temp = temp & (temp - 1))
|
||||
while ((temp = temp & (temp - 1)))
|
||||
ptr_unit.buf = ptr_unit.buf ^ 0200; /* count bits */
|
||||
ptr_unit.buf = ptr_unit.buf ^ 0200; /* set even parity */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user