ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/XS.xs
(Generate patch)

Comparing CBOR-XS/XS.xs (file contents):
Revision 1.24 by root, Wed Nov 20 16:29:02 2013 UTC vs.
Revision 1.25 by root, Fri Nov 22 05:54:07 2013 UTC

766 STRLEN len = decode_uint (dec); 766 STRLEN len = decode_uint (dec);
767 767
768 WANT (len); 768 WANT (len);
769 sv = newSVpvn (dec->cur, len); 769 sv = newSVpvn (dec->cur, len);
770 dec->cur += len; 770 dec->cur += len;
771
772 if (ecb_expect_false (dec->stringref)
773 && SvCUR (sv) >= minimum_string_length (AvFILLp (dec->stringref) + 1))
774 av_push (dec->stringref, SvREFCNT_inc_NN (sv));
771 } 775 }
772 776
773 if (utf8) 777 if (utf8)
774 SvUTF8_on (sv); 778 SvUTF8_on (sv);
775
776 if (ecb_expect_false (dec->stringref)
777 && SvCUR (sv) >= minimum_string_length (AvFILLp (dec->stringref) + 1))
778 av_push (dec->stringref, SvREFCNT_inc_NN (sv));
779 779
780 return sv; 780 return sv;
781 781
782fail: 782fail:
783 SvREFCNT_dec (sv); 783 SvREFCNT_dec (sv);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines