diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-21 10:31:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-21 10:31:11 +0000 |
commit | 0d95805c2ee6d6bbd42a71e7b82da1618b289b5c (patch) | |
tree | 5d9ac85359338150d3eec142aabcb9a395498340 /win32 | |
parent | 2def52500f89ac0b0a21dd92baafd2ca198cd8dd (diff) | |
download | ruby-0d95805c2ee6d6bbd42a71e7b82da1618b289b5c.tar.gz |
Suppress more -Wparentheses warnings
[Fix GH-1958]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 52de2cc63d..c76d43d384 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -6686,7 +6686,8 @@ constat_apply(HANDLE handle, struct constat *s, WCHAR w) COORD pos; if (!GetConsoleScreenBufferInfo(handle, &csbi)) return; - if (arg0 = (count > 0 && seq[0] > 0)) arg1 = seq[0]; + arg0 = (count > 0 && seq[0] > 0); + if (arg0) arg1 = seq[0]; switch (w) { case L'm': SetConsoleTextAttribute(handle, constat_attr(count, seq, csbi.wAttributes, s->vt100.attr, &s->vt100.reverse)); |