Skip to content

Commit 830b5b5

Browse files
committed
* expand tabs. [ci skip]
Tabs were expanded because the file did not have any tab indentation in unedited lines. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
1 parent 9ddfd2c commit 830b5b5

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *const anchor)
24592459
generated_iseq[code_index + 1 + j] = (VALUE)ic;
24602460
}
24612461
break;
2462-
case TS_IVC: /* inline ivar cache */
2462+
case TS_IVC: /* inline ivar cache */
24632463
{
24642464
unsigned int ic_index = FIX2UINT(operands[j]);
24652465
vm_ic_attr_index_initialize(((IVC)&body->is_entries[ic_index]), INVALID_SHAPE_ID);

gc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3779,8 +3779,8 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
37793779
RB_DEBUG_COUNTER_INC(obj_imemo_shape);
37803780
break;
37813781
}
3782-
}
3783-
return TRUE;
3782+
}
3783+
return TRUE;
37843784

37853785
default:
37863786
rb_bug("gc_sweep(): unknown data type 0x%x(%p) 0x%"PRIxVALUE,

variable.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ rb_mark_generic_ivar(VALUE obj)
10481048
#if !SHAPE_IN_BASIC_FLAGS
10491049
rb_gc_mark((VALUE)rb_shape_get_shape_by_id(ivtbl->shape_id));
10501050
#endif
1051-
gen_ivtbl_mark(ivtbl);
1051+
gen_ivtbl_mark(ivtbl);
10521052
}
10531053
}
10541054

@@ -1077,7 +1077,7 @@ rb_generic_ivar_memsize(VALUE obj)
10771077
struct gen_ivtbl *ivtbl;
10781078

10791079
if (rb_gen_ivtbl_get(obj, 0, &ivtbl))
1080-
return gen_ivtbl_bytes(ivtbl->numiv);
1080+
return gen_ivtbl_bytes(ivtbl->numiv);
10811081
return 0;
10821082
}
10831083

@@ -1779,17 +1779,17 @@ rb_ivar_count(VALUE obj)
17791779

17801780
switch (BUILTIN_TYPE(obj)) {
17811781
case T_OBJECT:
1782-
if (rb_shape_get_shape(obj)->iv_count > 0) {
1783-
st_index_t i, count, num = ROBJECT_NUMIV(obj);
1784-
const VALUE *const ivptr = ROBJECT_IVPTR(obj);
1785-
for (i = count = 0; i < num; ++i) {
1786-
if (ivptr[i] != Qundef) {
1787-
count++;
1788-
}
1789-
}
1790-
return count;
1791-
}
1792-
break;
1782+
if (rb_shape_get_shape(obj)->iv_count > 0) {
1783+
st_index_t i, count, num = ROBJECT_NUMIV(obj);
1784+
const VALUE *const ivptr = ROBJECT_IVPTR(obj);
1785+
for (i = count = 0; i < num; ++i) {
1786+
if (ivptr[i] != Qundef) {
1787+
count++;
1788+
}
1789+
}
1790+
return count;
1791+
}
1792+
break;
17931793
case T_CLASS:
17941794
case T_MODULE:
17951795
if ((tbl = RCLASS_IV_TBL(obj)) != 0) {
@@ -1800,11 +1800,11 @@ rb_ivar_count(VALUE obj)
18001800
if (FL_TEST(obj, FL_EXIVAR)) {
18011801
struct gen_ivtbl *ivtbl;
18021802

1803-
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) {
1804-
return gen_ivtbl_count(ivtbl);
1805-
}
1806-
}
1807-
break;
1803+
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) {
1804+
return gen_ivtbl_count(ivtbl);
1805+
}
1806+
}
1807+
break;
18081808
}
18091809
return 0;
18101810
}

0 commit comments

Comments
 (0)