1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust indents [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-11-01 09:35:09 +09:00
parent 4c59808a46
commit 2d3ecc4d28
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1581,17 +1581,17 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu
case SHAPE_IVAR: case SHAPE_IVAR:
iterate_over_shapes_with_callback(rb_shape_get_shape_by_id(shape->parent_id), callback, itr_data); iterate_over_shapes_with_callback(rb_shape_get_shape_by_id(shape->parent_id), callback, itr_data);
VALUE * iv_list; VALUE * iv_list;
switch(BUILTIN_TYPE(itr_data->obj)) { switch (BUILTIN_TYPE(itr_data->obj)) {
case T_OBJECT: case T_OBJECT:
iv_list = ROBJECT_IVPTR(itr_data->obj); iv_list = ROBJECT_IVPTR(itr_data->obj);
break; break;
case T_CLASS: case T_CLASS:
case T_MODULE: case T_MODULE:
iv_list = RCLASS_IVPTR(itr_data->obj); iv_list = RCLASS_IVPTR(itr_data->obj);
break; break;
default: default:
iv_list = itr_data->ivtbl->ivptr; iv_list = itr_data->ivtbl->ivptr;
break; break;
} }
VALUE val = iv_list[shape->next_iv_index - 1]; VALUE val = iv_list[shape->next_iv_index - 1];
if (val != Qundef) { if (val != Qundef) {