diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 14:11:39 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 14:11:39 +0000 |
commit | ab2c205c00017fd62845c65020a837a0b5c69ded (patch) | |
tree | 952e2c56f98e8580dc4a11a7ce4c5e6bf35bac50 /iseq.c | |
parent | 83262f24896abeaf1977c8837cbefb1b27040bef (diff) | |
download | ruby-ab2c205c00017fd62845c65020a837a0b5c69ded.tar.gz |
iseq.c: Add explicit casts from long to int (to pass compile on clang)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2840,9 +2840,9 @@ struct succ_index_table { } succ_index_table; #define imm_block_rank_set(v, i, r) (v) |= (uint64_t)(r) << (7 * (i)) -#define imm_block_rank_get(v, i) (((v) & 0x7fL << (i) * 7) >> ((i) * 7)) +#define imm_block_rank_get(v, i) ((int) (((v) & 0x7fL << (i) * 7) >> ((i) * 7))) #define small_block_rank_set(v, i, r) (v) |= (uint64_t)(r) << (9 * ((i) - 1)) -#define small_block_rank_get(v, i) ((i) == 0 ? 0 : ((v) & 0x1ffL << ((i) - 1) * 9) >> (((i) - 1) * 9)) +#define small_block_rank_get(v, i) ((int) ((i) == 0 ? 0 : ((v) & 0x1ffL << ((i) - 1) * 9) >> (((i) - 1) * 9))) static struct succ_index_table * succ_index_table_create(int max_pos, int *data, int size) |