summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-04-06 13:21:10 -0500
committerNicholas Clark <nick@ccl4.org>2005-04-08 10:05:49 +0000
commit9d6ce603cdee7562a08f99e2c98401671e70d7f2 (patch)
tree685e999888360f32e845be35d07913701e622850 /ext
parent496c75d06af2807a5a803cfac56d43b1b2764fec (diff)
downloadperl-9d6ce603cdee7562a08f99e2c98401671e70d7f2.tar.gz
Refactoring to Sv*_set() macros - patch #1
Message-ID: <20050406232110.GA12249@mccoy.peters.homeunix.org> Date: Wed, 6 Apr 2005 18:21:10 -0500 p4raw-id: //depot/perl@24199
Diffstat (limited to 'ext')
-rw-r--r--ext/ByteLoader/byterun.c2
-rw-r--r--ext/List/Util/Util.xs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ByteLoader/byterun.c b/ext/ByteLoader/byterun.c
index 3432eb326f..f11014746f 100644
--- a/ext/ByteLoader/byterun.c
+++ b/ext/ByteLoader/byterun.c
@@ -249,7 +249,7 @@ byterun(pTHX_ register struct byteloader_state *bstate)
{
NV arg;
BGET_NV(arg);
- SvNVX(bstate->bs_sv) = arg;
+ SvNV_set(bstate->bs_sv, arg);
break;
}
case INSN_XLV_TARGOFF: /* 27 */
diff --git a/ext/List/Util/Util.xs b/ext/List/Util/Util.xs
index 81e35cfd29..a1f956a6d6 100644
--- a/ext/List/Util/Util.xs
+++ b/ext/List/Util/Util.xs
@@ -353,7 +353,7 @@ CODE:
(void)SvUPGRADE(ST(0),SVt_PVNV);
sv_setpvn(ST(0),ptr,len);
if(SvNOK(num) || SvPOK(num) || SvMAGICAL(num)) {
- SvNVX(ST(0)) = SvNV(num);
+ SvNV_set(ST(0), SvNV(num));
SvNOK_on(ST(0));
}
#ifdef SVf_IVisUV