mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
initialize a local variable to avoid warning
This commit is contained in:
@@ -27,6 +27,8 @@ enum_update_hash(mrb_state *mrb, mrb_value self)
|
||||
#endif
|
||||
else {
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "can't calculate hash");
|
||||
/* not reached */
|
||||
hv = 0;
|
||||
}
|
||||
hash ^= (hv << (index % 16));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user