mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
Use newSV(). NEWSV() is deprecated.
This commit is contained in:
parent
bebcc24ab8
commit
197205853f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue