Skip to content

Commit 4f5c042

Browse files
t-a-kkhwilliamson
authored andcommitted
hv.c: Use SvIsUV instead of SvUOK in the block where SvIOK holds true.
Because SvUOK is essentially (SvIOK && SvIsUV), SvUOK is redundant in the block where SvIOK is guaranteed to hold true.
1 parent e721750 commit 4f5c042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3856,7 +3856,7 @@ Perl_refcounted_he_new_pvn(pTHX_ struct refcounted_he *parent,
38563856
} else if (SvPOK(value)) {
38573857
value_type = HVrhek_PV;
38583858
} else if (SvIOK(value)) {
3859-
value_type = SvUOK((const SV *)value) ? HVrhek_UV : HVrhek_IV;
3859+
value_type = SvIsUV(value) ? HVrhek_UV : HVrhek_IV;
38603860
} else if (!SvOK(value)) {
38613861
value_type = HVrhek_undef;
38623862
} else {

0 commit comments

Comments
 (0)