aboutsummaryrefslogtreecommitdiffstats
path: root/yarp/api_pack.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-05 11:09:10 +0900
committergit <svn-admin@ruby-lang.org>2023-08-08 13:21:38 +0000
commitd931bf223216e87e8befebd8d631d9f25c23d564 (patch)
tree702a59d4c1e63a12e49600681f2d55e6ca047bf2 /yarp/api_pack.c
parent72d1a790cfe0e4a457db98c587f1acaa5e39f001 (diff)
downloadruby-d931bf223216e87e8befebd8d631d9f25c23d564.tar.gz
[ruby/yarp] Adjust indents [ci skip]
https://github.com/ruby/yarp/commit/2d1135769d
Diffstat (limited to 'yarp/api_pack.c')
-rw-r--r--yarp/api_pack.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/yarp/api_pack.c b/yarp/api_pack.c
index d089f8ceca..05f9dc42c0 100644
--- a/yarp/api_pack.c
+++ b/yarp/api_pack.c
@@ -188,7 +188,7 @@ pack_parse(VALUE self, VALUE version_symbol, VALUE variant_symbol, VALUE format_
const char *directive_start = format;
yp_pack_result parse_result = yp_pack_parse(variant, &format, format_end, &type, &signed_type, &endian,
- &size, &length_type, &length, &encoding);
+ &size, &length_type, &length, &encoding);
const char *directive_end = format;
@@ -214,14 +214,14 @@ pack_parse(VALUE self, VALUE version_symbol, VALUE variant_symbol, VALUE format_
}
VALUE directive_args[9] = { version_symbol,
- variant_symbol,
- rb_usascii_str_new(directive_start, directive_end - directive_start),
- pack_type_to_symbol(type),
- pack_signed_to_symbol(signed_type),
- pack_endian_to_symbol(endian),
- pack_size_to_symbol(size),
- pack_length_type_to_symbol(length_type),
- (long) LONG2NUM(length) };
+ variant_symbol,
+ rb_usascii_str_new(directive_start, directive_end - directive_start),
+ pack_type_to_symbol(type),
+ pack_signed_to_symbol(signed_type),
+ pack_endian_to_symbol(endian),
+ pack_size_to_symbol(size),
+ pack_length_type_to_symbol(length_type),
+ (long) LONG2NUM(length) };
rb_ary_push(directives_array, rb_class_new_instance(9, directive_args, rb_cYARPPackDirective));
}