diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-22 19:11:51 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-22 19:11:51 -0700 |
| commit | acab35a2a54e00e197b7372e940b83235480179d (patch) | |
| tree | b8ec207c86e6f9e270c04799c5cb7d59354acac6 /src/hash.c | |
| parent | 04d9c5ea6bfbdaf425526cf3556704f6b9fd0971 (diff) | |
| parent | f4b943771881b01b40b34ca38ccdd62bb5eaaa66 (diff) | |
| download | mruby-acab35a2a54e00e197b7372e940b83235480179d.tar.gz mruby-acab35a2a54e00e197b7372e940b83235480179d.zip | |
Merge pull request #1039 from crimsonwoods/fix_the_type_of_opcode
Fix the type of value that is returned by bit shift expression.
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index 74474df95..6976530e1 100644 --- a/src/hash.c +++ b/src/hash.c @@ -15,7 +15,7 @@ static inline khint_t mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) { - khint_t h = mrb_type(key) << 24; + khint_t h = (khint_t)mrb_type(key) << 24; mrb_value h2; h2 = mrb_funcall(mrb, key, "hash", 0, 0); |
