diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2014-05-03 19:45:54 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-05-03 19:45:54 +0200 |
commit | 01c98e018c8a6ee3031e8e5b78680cfc67c68f09 (patch) | |
tree | 518a8b5b19e1f692d472592b02d467c738a4e519 | |
parent | 8a834f6a35cf928d04e161e8e14103a20eb204ed (diff) | |
download | screen-01c98e018c8a6ee3031e8e5b78680cfc67c68f09.tar.gz |
add parenthesis around evaluated expressions
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r-- | src/display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c index e02450d..05bbe64 100644 --- a/src/display.c +++ b/src/display.c @@ -2254,7 +2254,7 @@ char *str; GotoPos(0, 0); SetRendition(captionalways || D_cvlist == 0 || D_cvlist->c_next ? &mchar_null: &mchar_so); l = PrePutWinMsg(str, 0, l); - if (!captionalways || D_cvlist && !D_cvlist->c_next) + if (!captionalways || (D_cvlist && !D_cvlist->c_next)) while (l++ < D_width) PUTCHARLP(' '); if (l < D_width) @@ -2368,7 +2368,7 @@ int y, from, to, isblank; isblank = 1; } - if (y == D_height - 1 && D_has_hstatus == HSTATUS_LASTLINE || (y == 0 && D_has_hstatus == HSTATUS_FIRSTLINE) ) + if ((y == D_height - 1 && D_has_hstatus == HSTATUS_LASTLINE) || (y == 0 && D_has_hstatus == HSTATUS_FIRSTLINE) ) { RefreshHStatus(); return; |