X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xsutils.c;h=848fc958d0f6c69a766ae25c6668ee66ea22ff54;hb=b1ddf169801254979af17f682f37e96143b35982;hp=7b968cf6258945cfd591c0b138c9153e8aa0b548;hpb=7423f6db106ad471398838e82e73b22d8c1e166e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/xsutils.c b/xsutils.c index 7b968cf..848fc95 100644 --- a/xsutils.c +++ b/xsutils.c @@ -61,7 +61,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs) for (nret = 0 ; numattrs && (attr = *attrlist++); numattrs--) { STRLEN len; - const char *name = SvPV(attr, len); + const char *name = SvPV_const(attr, len); const bool negated = (*name == '-'); if (negated) { @@ -305,8 +305,7 @@ usage: rv = ST(0); ST(0) = TARG; - if (SvGMAGICAL(rv)) - mg_get(rv); + SvGETMAGIC(rv); if (!(SvOK(rv) && SvROK(rv))) goto usage; sv = SvRV(rv);