diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-31 18:16:48 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-31 18:16:48 -0800 |
commit | a901b18147e02d3117f168809546ebbdac442db0 (patch) | |
tree | 565420a249fe184b034038d4feadb5ad268a445a /proto.h | |
parent | eff8c8ec4d6623e9b2d486205961a2e78e598b65 (diff) | |
download | perl-a901b18147e02d3117f168809546ebbdac442db0.tar.gz |
Make SvPVbyte return bytes for non-PVs
Instead of just doing SvPV on something that is not a PV, SvPVbyte
should actually do what it is advertised as doing.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3716,7 +3716,7 @@ PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, cons #define PERL_ARGS_ASSERT_SV_2PV_NOLEN \ assert(sv) -PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp) +PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *sv, STRLEN *const lp) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_SV_2PVBYTE \ assert(sv) |