This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9237a47
)
Convert lvalue usage of SvNVX() and SvIVX() to SvNV_set() and
author
Steve Peters
<steve@fisharerojo.org>
Thu, 6 Oct 2005 19:23:59 +0000
(19:23 +0000)
committer
Steve Peters
<steve@fisharerojo.org>
Thu, 6 Oct 2005 19:23:59 +0000
(19:23 +0000)
SvIV_set(). Otherwise, compiling with -DPERL_DEBUG_COW fails.
p4raw-id: //depot/perl@25708
ext/Compress/Zlib/Zlib.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/Compress/Zlib/Zlib.xs
b/ext/Compress/Zlib/Zlib.xs
index
3fce623
..
5d64890
100644
(file)
--- a/
ext/Compress/Zlib/Zlib.xs
+++ b/
ext/Compress/Zlib/Zlib.xs
@@
-722,7
+722,7
@@
CODE:
SvUPGRADE(ST(0),SVt_PVNV);
sv_setpvn(ST(0),ptr,len);
if(SvNOK(num) || SvPOK(num) || SvMAGICAL(num)) {
- SvNV
X(ST(0)) = SvNV(num
);
+ SvNV
_set(ST(0), SvNV(num)
);
SvNOK_on(ST(0));
}
#ifdef SVf_IVisUVXXXX
@@
-733,7
+733,7
@@
CODE:
}
#endif
else {
- SvIV
X(ST(0)) = SvIV(num
);
+ SvIV
_set(ST(0), SvIV(num)
);
SvIOK_on(ST(0));
}
XSRETURN(1);