X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=universal.c;h=0899b1a6019993ff4156300bd716783a9d233201;hb=8bfddb3de588d752d712dd22a7e2699b224f6f42;hp=9adc42de8447d0697ba75788bd3c098a03471ce7;hpb=46e4b22b349f2fc617bcb5c937a01a6be391d76f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/universal.c b/universal.c index 9adc42d..0899b1a 100644 --- a/universal.c +++ b/universal.c @@ -262,12 +262,12 @@ 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) { - Perl_croak(aTHX_ "%s v%vd required--" - "this is only v%vd", + Perl_croak(aTHX_ "%s v%"VDf" required--" + "this is only v%"VDf, HvNAME(pkg), req, sv); } goto finish; @@ -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);