summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--array.c4
-rw-r--r--compile.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/array.c b/array.c
index b3b334dd68..1eb1f1ced9 100644
--- a/array.c
+++ b/array.c
@@ -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);
diff --git a/compile.c b/compile.c
index be5fd9c345..bd4b6e559a 100644
--- a/compile.c
+++ b/compile.c
@@ -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)) {