From: Nicholas Clark Date: Fri, 15 Jul 2011 12:46:30 +0000 (+0200) Subject: Change sv_eq_pvn_flags()'s parameter pvlen from I32 to STRLEN. X-Git-Tag: accepted/trunk/20130322.191538~3302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76d60a5393cb55f0d74c183769765dc7db58d81c;p=platform%2Fupstream%2Fperl.git 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. --- diff --git a/pad.c b/pad.c index 52bf354..43011eb 100644 --- a/pad.c +++ b/pad.c @@ -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);