X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=universal.c;h=6c555a1347d3d53fed32895f507d13c307f5c5c2;hb=976cc4b324252da88ff069ecdaa817a11ac6364f;hp=9adc42de8447d0697ba75788bd3c098a03471ce7;hpb=46e4b22b349f2fc617bcb5c937a01a6be391d76f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/universal.c b/universal.c index 9adc42d..6c555a1 100644 --- a/universal.c +++ b/universal.c @@ -262,7 +262,7 @@ XS(XS_UNIVERSAL_VERSION) break; } if (len) { - if (SvNIOKp(req) && SvPOK(req)) { + if (SvNOK(req) && SvPOK(req)) { /* they said C and $Foo::VERSION * doesn't look like a float: do string compare */ if (sv_cmp(req,sv) == 1) { @@ -283,7 +283,7 @@ XS(XS_UNIVERSAL_VERSION) /* if we get here, we're looking for a numeric comparison, * so force the required version into a float, even if they * said C */ - if (SvNIOKp(req) && SvPOK(req)) { + if (SvNOK(req) && SvPOK(req)) { NV n = SvNV(req); req = sv_newmortal(); sv_setnv(req, n);