mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Silence -fsanitize=undefined warning in src/enum.c; fix #4161
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ enum_update_hash(mrb_state *mrb, mrb_value self)
|
||||
/* not reached */
|
||||
hv = 0;
|
||||
}
|
||||
hash ^= (hv << (index % 16));
|
||||
hash ^= ((uint32_t)hv << (index % 16));
|
||||
|
||||
return mrb_fixnum_value(hash);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user