Please consider using misc/expand_tabs.rb as a pre-commit hook.
This commit is contained in:
git 2023-04-19 00:16:36 +00:00
Родитель bdffcd6df3
Коммит 21082eac50
2 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -5360,8 +5360,8 @@ rb_ary_hash_values(long len, const VALUE *elements)
h = rb_hash_start(len); h = rb_hash_start(len);
h = rb_hash_uint(h, (st_index_t)rb_ary_hash_values); h = rb_hash_uint(h, (st_index_t)rb_ary_hash_values);
for (i=0; i<len; i++) { for (i=0; i<len; i++) {
n = rb_hash(elements[i]); n = rb_hash(elements[i]);
h = rb_hash_uint(h, NUM2LONG(n)); h = rb_hash_uint(h, NUM2LONG(n));
} }
h = rb_hash_end(h); h = rb_hash_end(h);
return ST2FIX(h); return ST2FIX(h);

Просмотреть файл

@ -3706,10 +3706,10 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
if (IS_INSN_ID(niobj, send)) { if (IS_INSN_ID(niobj, send)) {
const struct rb_callinfo *ci = (struct rb_callinfo *)OPERAND_AT(niobj, 0); 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) { if ((vm_ci_flag(ci) & VM_CALL_ARGS_SIMPLE) && vm_ci_argc(ci) == 0) {
switch (vm_ci_mid(ci)) { switch (vm_ci_mid(ci)) {
case idMax: case idMax:
case idMin: case idMin:
case idHash: case idHash:
{ {
rb_num_t num = (rb_num_t)iobj->operands[0]; rb_num_t num = (rb_num_t)iobj->operands[0];
iobj->insn_id = BIN(opt_newarray_send); iobj->insn_id = BIN(opt_newarray_send);
@ -3720,9 +3720,9 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
ELEM_REMOVE(&niobj->link); ELEM_REMOVE(&niobj->link);
return COMPILE_OK; return COMPILE_OK;
} }
} }
} }
} }
} }
if (IS_INSN_ID(iobj, send)) { if (IS_INSN_ID(iobj, send)) {