Two more uses of lvalue SvIVX()
Nicholas Clark [Mon, 18 Apr 2005 14:15:52 +0000 (14:15 +0000)]
p4raw-id: //depot/perl@24240

ext/ByteLoader/byterun.c
lib/ExtUtils/t/Constant.t

index f110147..d2f4242 100644 (file)
@@ -242,7 +242,7 @@ byterun(pTHX_ register struct byteloader_state *bstate)
            {
                IV arg;
                BGET_IV(arg);
-               SvIVX(bstate->bs_sv) = arg;
+               SvIV_set(bstate->bs_sv, arg);
                break;
            }
          case INSN_XNV:                /* 26 */
index 4a1657c..0ef797a 100644 (file)
@@ -508,7 +508,7 @@ EOT
                {name=>"RFC1149", type=>"SV", value=>"sv_2mortal(temp_sv)",
                 pre=>"SV *temp_sv = newSVpv(RFC1149, 0); "
                 . "(void) SvUPGRADE(temp_sv,SVt_PVIV); SvIOK_on(temp_sv); "
-                . "SvIVX(temp_sv) = 1149;"},
+                . "SvIV_set(temp_sv, 1149);"},
               );
 
   push @items, $_ foreach keys %compass;