mirror of
https://github.com/open-simh/simh.git
synced 2026-04-24 19:40:22 +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:
@@ -334,7 +334,7 @@ if (ln >= 0) { /* got one? */
|
||||
tmxr_poll_rx (&pas_desc); /* poll for input */
|
||||
for (ln = 0; ln < PAS_ENAB; ln++) { /* loop thru lines */
|
||||
if (pas_ldsc[ln].conn) { /* connected? */
|
||||
if (c = tmxr_getc_ln (&pas_ldsc[ln])) { /* any char? */
|
||||
if ((c = tmxr_getc_ln (&pas_ldsc[ln]))) { /* any char? */
|
||||
pas_sta[ln] = pas_sta[ln] & ~(STA_FR | STA_PF);
|
||||
if (pas_rchp[ln])
|
||||
pas_sta[ln] = pas_sta[ln] | STA_OVR;
|
||||
|
||||
Reference in New Issue
Block a user