summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hv.h2
-rw-r--r--regcomp.c2
-rw-r--r--sv.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/hv.h b/hv.h
index 39aa1bb9e3..f1cf406c05 100644
--- a/hv.h
+++ b/hv.h
@@ -300,7 +300,7 @@ C<SV*>.
#define HvUSEDKEYS(hv) (HvTOTALKEYS(hv) - HvPLACEHOLDERS_get(hv))
#define HvTOTALKEYS(hv) XHvTOTALKEYS((XPVHV*) SvANY(hv))
#define HvPLACEHOLDERS(hv) (*Perl_hv_placeholders_p(aTHX_ MUTABLE_HV(hv)))
-#define HvPLACEHOLDERS_get(hv) (SvMAGIC(hv) ? Perl_hv_placeholders_get(aTHX_ (const HV *)hv) : 0)
+#define HvPLACEHOLDERS_get(hv) (SvMAGIC(hv) ? Perl_hv_placeholders_get(aTHX_ (HV *)hv) : 0)
#define HvPLACEHOLDERS_set(hv,p) Perl_hv_placeholders_set(aTHX_ MUTABLE_HV(hv), p)
#define HvSHAREKEYS(hv) (SvFLAGS(hv) & SVphv_SHAREKEYS)
diff --git a/regcomp.c b/regcomp.c
index 1bf8bc9fc5..299f925b01 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5255,7 +5255,7 @@ Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv,
goto getlen;
} else {
if (ckWARN(WARN_UNINITIALIZED))
- report_uninit((const SV *)sv);
+ report_uninit((SV *)sv);
return 0;
}
}
diff --git a/sv.c b/sv.c
index 9eb2cd50b8..235ade8bb4 100644
--- a/sv.c
+++ b/sv.c
@@ -12468,12 +12468,12 @@ S_find_uninit_var(pTHX_ OP* obase, SV* uninit_sv, bool match)
/* attempt to find a match within the aggregate */
if (hash) {
- keysv = find_hash_subscript((const HV*)sv, uninit_sv);
+ keysv = find_hash_subscript((HV*)sv, uninit_sv);
if (keysv)
subscript_type = FUV_SUBSCRIPT_HASH;
}
else {
- index = find_array_subscript((const AV *)sv, uninit_sv);
+ index = find_array_subscript((AV *)sv, uninit_sv);
if (index >= 0)
subscript_type = FUV_SUBSCRIPT_ARRAY;
}
@@ -12590,14 +12590,14 @@ S_find_uninit_var(pTHX_ OP* obase, SV* uninit_sv, bool match)
/* index is an expression;
* attempt to find a match within the aggregate */
if (obase->op_type == OP_HELEM) {
- SV * const keysv = find_hash_subscript((const HV*)sv, uninit_sv);
+ SV * const keysv = find_hash_subscript((HV*)sv, uninit_sv);
if (keysv)
return varname(gv, '%', o->op_targ,
keysv, 0, FUV_SUBSCRIPT_HASH);
}
else {
const I32 index
- = find_array_subscript((const AV *)sv, uninit_sv);
+ = find_array_subscript((AV *)sv, uninit_sv);
if (index >= 0)
return varname(gv, '@', o->op_targ,
NULL, index, FUV_SUBSCRIPT_ARRAY);