summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mro.c b/mro.c
index b6c4db8ea5..7535c06797 100644
--- a/mro.c
+++ b/mro.c
@@ -864,9 +864,10 @@ XS(XS_mro_is_universal)
class_stash = gv_stashsv(classname, 0);
if(!class_stash) Perl_croak(aTHX_ "No such class: '%"SVf"'!", SVfARG(classname));
- HvMROMETA(class_stash)->is_universal
- ? XSRETURN_YES
- : XSRETURN_NO;
+ if (HvMROMETA(class_stash)->is_universal)
+ XSRETURN_YES;
+ else
+ XSRETURN_NO;
}
XS(XS_mro_get_global_sub_generation)