aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 02:02:09 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 02:02:09 +0000
commit226b91598a6aa0f226b23624dce0b3c5a7de567d (patch)
tree310106e5d373af123515c69c414e8ce197d9c1de /util.c
parent1d782010b519754d8e6ee476c0603534953c9dfb (diff)
downloadruby-226b91598a6aa0f226b23624dce0b3c5a7de567d.tar.gz
yet another -Wparentheses tweak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 7758a22243..0e49e4439d 100644
--- a/util.c
+++ b/util.c
@@ -1342,7 +1342,7 @@ mult(Bigint *a, Bigint *b)
#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)
} while (x < xae);
*xc = (ULong)carry;
}
- if (y = *xb >> 16) {
+ if ((y = *xb >> 16) != 0) {
x = xa;
xc = xc0;
carry = 0;