1
0
mirror of https://github.com/msgpack/msgpack-c.git synced 2025-03-21 06:11:18 +01:00

Use newSV(). NEWSV() is deprecated.

This commit is contained in:
gfx 2010-09-15 12:35:10 +09:00
parent bebcc24ab8
commit 197205853f

@ -252,7 +252,7 @@ XS(xs_pack) {
if (items >= 3) depth = SvIV(ST(2));
enc_t enc;
enc.sv = sv_2mortal(NEWSV(0, INIT_SIZE));
enc.sv = sv_2mortal(newSV(INIT_SIZE));
enc.cur = SvPVX(enc.sv);
enc.end = SvEND(enc.sv);
SvPOK_only(enc.sv);