diff options
-rw-r--r-- | array.c | 4 | ||||
-rw-r--r-- | compile.c | 14 |
2 files changed, 9 insertions, 9 deletions
@@ -5360,8 +5360,8 @@ rb_ary_hash_values(long len, const VALUE *elements) h = rb_hash_start(len); h = rb_hash_uint(h, (st_index_t)rb_ary_hash_values); for (i=0; i<len; i++) { - n = rb_hash(elements[i]); - h = rb_hash_uint(h, NUM2LONG(n)); + n = rb_hash(elements[i]); + h = rb_hash_uint(h, NUM2LONG(n)); } h = rb_hash_end(h); return ST2FIX(h); @@ -3706,10 +3706,10 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj) if (IS_INSN_ID(niobj, send)) { const struct rb_callinfo *ci = (struct rb_callinfo *)OPERAND_AT(niobj, 0); if ((vm_ci_flag(ci) & VM_CALL_ARGS_SIMPLE) && vm_ci_argc(ci) == 0) { - switch (vm_ci_mid(ci)) { - case idMax: - case idMin: - case idHash: + switch (vm_ci_mid(ci)) { + case idMax: + case idMin: + case idHash: { rb_num_t num = (rb_num_t)iobj->operands[0]; iobj->insn_id = BIN(opt_newarray_send); @@ -3720,9 +3720,9 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj) ELEM_REMOVE(&niobj->link); return COMPILE_OK; } - } - } - } + } + } + } } if (IS_INSN_ID(iobj, send)) { |