diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-11-01 09:35:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-11-01 09:35:09 +0900 |
commit | 2d3ecc4d284b5c16a98f68fcf3265d3451ffe61c () | |
tree | 3558477fb5d496667e9a7ab9f9b83cc5039ebb44 /variable.c | |
parent | 4c59808a464e1d866a8645b6cacd946a05883f9e (diff) |
Adjust indents [ci skip]
-rw-r--r-- | variable.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1581,17 +1581,17 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu case SHAPE_IVAR: iterate_over_shapes_with_callback(rb_shape_get_shape_by_id(shape->parent_id), callback, itr_data); VALUE * iv_list; - switch(BUILTIN_TYPE(itr_data->obj)) { - case T_OBJECT: - iv_list = ROBJECT_IVPTR(itr_data->obj); - break; - case T_CLASS: - case T_MODULE: - iv_list = RCLASS_IVPTR(itr_data->obj); - break; - default: - iv_list = itr_data->ivtbl->ivptr; - break; } VALUE val = iv_list[shape->next_iv_index - 1]; if (val != Qundef) { |