diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-22 21:57:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-22 21:59:27 +0900 |
commit | 92c7417d7322f550c076459fa70a0679f8b61e5a (patch) | |
tree | 6ff7593707461173cd9ab01576a20a1e3cca71d0 | |
parent | c6734edc345c04d887e9183672f32f1d953c41d2 (diff) |
Adjust indents [ci skip]
-rw-r--r-- | ext/objspace/objspace.c | 6 | ||||
-rw-r--r-- | ext/objspace/objspace_dump.c | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index fd5f770696..0b1b094325 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -62,9 +62,9 @@ total_i(VALUE v, void *ptr) struct total_data *data = (struct total_data *)ptr; if (!rb_objspace_internal_object_p(v)) { - if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) { - data->total += rb_obj_memsize_of(v); - } + if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) { + data->total += rb_obj_memsize_of(v); + } } } diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 91d9eec4f3..2917d49331 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -76,7 +76,8 @@ buffer_ensure_capa(struct dump_config *dc, unsigned long requested) } } -static void buffer_append(struct dump_config *dc, const char *cstr, unsigned long len) +static void +buffer_append(struct dump_config *dc, const char *cstr, unsigned long len) { if (LIKELY(len > 0)) { buffer_ensure_capa(dc, len); @@ -525,8 +526,8 @@ dump_object(VALUE obj, struct dump_config *dc) break; case T_ZOMBIE: - dump_append(dc, "}\n"); - return; + dump_append(dc, "}\n"); + return; default: break; |