diff options
-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; |