diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-03 04:28:58 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-03 04:28:58 -0800 |
| commit | 4354999fc628d248da85eaf7caf4e951cb421c92 (patch) | |
| tree | e9b051e73cc45f58a1ca2964e33228803752e497 /mrbgems/mruby-struct/src | |
| parent | bc46c374b40354b1f1320d5bea75fd852d0ea9ed (diff) | |
| parent | 6cd7017ec11b0cbe40e8dbe462e5eda9ad7ce97c (diff) | |
| download | mruby-4354999fc628d248da85eaf7caf4e951cb421c92.tar.gz mruby-4354999fc628d248da85eaf7caf4e951cb421c92.zip | |
Merge pull request #933 from monaka/pr-remove-trailing-whitespaces-20130303
Remove trailing whitespaces. This is just a cosmetic change.
Diffstat (limited to 'mrbgems/mruby-struct/src')
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index a49d8244b..33997b294 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -352,8 +352,8 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass) mrb_get_args(mrb, "*&", &argv, &argc, &b); if (argc == 0) { /* special case to avoid crash */ rest = mrb_ary_new(mrb); - } - else { + } + else { if (argc > 0) name = argv[0]; if (argc > 1) rest = argv[1]; if (mrb_array_p(rest)) { @@ -378,7 +378,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass) id = mrb_to_id(mrb, RARRAY_PTR(rest)[i]); RARRAY_PTR(rest)[i] = mrb_symbol_value(id); } - } + } st = make_struct(mrb, name, rest, struct_class(mrb)); if (!mrb_nil_p(b)) { mrb_funcall(mrb, b, "call", 1, &st); |
