mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-20 13:33:51 +01:00
Use newSV(). NEWSV() is deprecated.
This commit is contained in:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user