mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user