summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-02-18 17:21:08 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-02-18 17:25:01 +0900
commit9215c854502da336efe8ece755450478f320349f (patch)
treea468b85ebd50c2a5bd2f27082f3992da6e074dec /src
parent4ccc3f15259c9857255c5af9f35e56c742aca2c3 (diff)
downloadmruby-9215c854502da336efe8ece755450478f320349f.tar.gz
mruby-9215c854502da336efe8ece755450478f320349f.zip
Parenthesize expression to suppress warning; ref #4278
Diffstat (limited to 'src')
-rw-r--r--src/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c
index 8424cecd9..87c4ca11e 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -80,7 +80,7 @@ sym_inline_unpack(mrb_sym sym, char *buf, mrb_int *lenp)
mrb_assert(sym&1);
for (i=0; i<30/bit_per_char; i++) {
- uint32_t bits = sym>>(i*bit_per_char+2) & (1<<bit_per_char)-1;
+ uint32_t bits = sym>>(i*bit_per_char+2) & ((1<<bit_per_char)-1);
if (bits == 0) break;
buf[i] = pack_table[bits-1];;
}