ruby-changes:52636
From: shyouhei <ko1@a...>
Date: Wed, 26 Sep 2018 11:02:15 +0900 (JST)
Subject: [ruby-changes:52636] shyouhei:r64848 (trunk): yet another -Wparentheses tweak
shyouhei 2018-09-26 11:02:09 +0900 (Wed, 26 Sep 2018) New Revision: 64848 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64848 Log: yet another -Wparentheses tweak Modified files: trunk/util.c Index: util.c =================================================================== --- util.c (revision 64847) +++ util.c (revision 64848) @@ -1342,7 +1342,7 @@ mult(Bigint *a, Bigint *b) https://github.com/ruby/ruby/blob/trunk/util.c#L1342 #else #ifdef Pack_32 for (; xb < xbe; xb++, xc0++) { - if (y = *xb & 0xffff) { + if ((y = *xb & 0xffff) != 0) { x = xa; xc = xc0; carry = 0; @@ -1355,7 +1355,7 @@ mult(Bigint *a, Bigint *b) https://github.com/ruby/ruby/blob/trunk/util.c#L1355 } while (x < xae); *xc = (ULong)carry; } - if (y = *xb >> 16) { + if ((y = *xb >> 16) != 0) { x = xa; xc = xc0; carry = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/