From aa80caa786cae3104ef2d754095e19f0ddf9be64 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 28 Jun 2020 12:57:34 -0600 Subject: sv.c: Change flags param on two fcns from I32 to U32 This is so the parameter types for sv_2pv_flags and sv_pvn_force_flags are indistinguishable from similar functions, and can be passed as a function pointer in a future commit. It doesn't generally make sense to have a flags variable signed anyway. --- proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto.h') diff --git a/proto.h b/proto.h index 24a43994ed..c4490fc46e 100644 --- a/proto.h +++ b/proto.h @@ -3248,7 +3248,7 @@ PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); #define PERL_ARGS_ASSERT_SV_2PV \ assert(sv) #endif -PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags); +PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const U32 flags); #define PERL_ARGS_ASSERT_SV_2PV_FLAGS \ assert(sv) #ifndef NO_MATHOMS @@ -3596,7 +3596,7 @@ PERL_CALLCONV char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp); #define PERL_ARGS_ASSERT_SV_PVN_FORCE \ assert(sv) #endif -PERL_CALLCONV char* Perl_sv_pvn_force_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags); +PERL_CALLCONV char* Perl_sv_pvn_force_flags(pTHX_ SV *const sv, STRLEN *const lp, const U32 flags); #define PERL_ARGS_ASSERT_SV_PVN_FORCE_FLAGS \ assert(sv) #ifndef NO_MATHOMS -- cgit v1.2.1