summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-28 14:21:03 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-28 14:21:03 +0000
commit5844ac76c26b089bf113b64f4251a673b59bdebb (patch)
treedd464a0edcc04e2e6a6936b4eb2f7d444c77491c /mro.c
parent44b87b5061968d098b3906ca4b5e6f94469c8694 (diff)
downloadperl-5844ac76c26b089bf113b64f4251a673b59bdebb.tar.gz
Add casts to gain C++ compatibility, as spotted by Yves.
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mro.c b/mro.c
index c29d38e3b1..79df157cbc 100644
--- a/mro.c
+++ b/mro.c
@@ -37,9 +37,9 @@ Perl_mro_get_private_data(pTHX_ struct mro_meta *const smeta,
SV **data;
PERL_ARGS_ASSERT_MRO_GET_PRIVATE_DATA;
- data = Perl_hv_common(aTHX_ smeta->mro_linear_all, NULL,
- which->name, which->length, which->kflags,
- HV_FETCH_JUST_SV, NULL, which->hash);
+ data = (SV **)Perl_hv_common(aTHX_ smeta->mro_linear_all, NULL,
+ which->name, which->length, which->kflags,
+ HV_FETCH_JUST_SV, NULL, which->hash);
if (!data)
return NULL;
@@ -105,8 +105,8 @@ Perl_mro_get_from_name(pTHX_ SV *name) {
PERL_ARGS_ASSERT_MRO_GET_FROM_NAME;
- data = Perl_hv_common(aTHX_ PL_registered_mros, name, NULL, 0, 0,
- HV_FETCH_JUST_SV, NULL, 0);
+ data = (SV **)Perl_hv_common(aTHX_ PL_registered_mros, name, NULL, 0, 0,
+ HV_FETCH_JUST_SV, NULL, 0);
if (!data)
return NULL;
assert(SvTYPE(*data) == SVt_IV);