diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-07-15 14:46:30 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-07-15 14:46:30 +0200 |
commit | 76d60a5393cb55f0d74c183769765dc7db58d81c (patch) | |
tree | bfde2e7c0d4b4df413e961dd5a749e8d1b6fbbac /pad.c | |
parent | eebd3bc0dfa10c5d80023c98a5e80dc4fb6689ca (diff) | |
download | perl-76d60a5393cb55f0d74c183769765dc7db58d81c.tar.gz |
Change sv_eq_pvn_flags()'s parameter pvlen from I32 to STRLEN.
Change its return type to bool from I32, as it only returns truth or falsehood.
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,8 +173,8 @@ This is basically sv_eq_flags() in sv.c, but we avoid the magic and bytes checking. */ -STATIC I32 -sv_eq_pvn_flags(pTHX_ const SV *sv, const char* pv, const I32 pvlen, const U32 flags) { +static bool +sv_eq_pvn_flags(pTHX_ const SV *sv, const char* pv, const STRLEN pvlen, const U32 flags) { if ( (SvUTF8(sv) & SVf_UTF8 ) != (flags & SVf_UTF8) ) { const char *pv1 = SvPVX_const(sv); STRLEN cur1 = SvCUR(sv); |