зеркало из https://github.com/github/ruby.git
* expand tabs. [ci skip]
Please consider using misc/expand_tabs.rb as a pre-commit hook.
This commit is contained in:
Родитель
bdffcd6df3
Коммит
21082eac50
4
array.c
4
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);
|
||||
|
|
14
compile.c
14
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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче