boxing_nan.h, boxing_word.h: place newline before else

The mruby C style places `else` on its own line. Reformat the
remaining `} else {` / `} else if (...)` occurrences.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-04-27 10:37:00 +09:00
parent 1702b89c25
commit d6556195ef
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ mrb_unboxed_type(mrb_value o)
{
if (!mrb_float_p(o) && mrb_nb_tt(o) == MRB_NANBOX_TT_OBJECT && o.u != 0) {
return ((struct RBasic*)(uintptr_t)o.u)->tt;
} else {
}
else {
return MRB_TT_FALSE;
}
}
+4 -2
View File
@@ -266,9 +266,11 @@ mrb_unboxed_type(mrb_value o)
{
if (mrb_nil_p(o)) {
return MRB_TT_FALSE;
} else if ((o.w & WORDBOX_IMMEDIATE_MASK) == 0) {
}
else if ((o.w & WORDBOX_IMMEDIATE_MASK) == 0) {
return mrb_val_union(o).bp->tt;
} else {
}
else {
return MRB_TT_FALSE;
}
}