X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=mop.c;h=126568d78352871b4a0e8dcf5cc0f43dbbe9158c;hb=2dba318b2f836c879eb8a0622643c3d7150d3b70;hp=feae85846707ef5a32a5749399210f00b28f7bb5;hpb=95ac09c541e02e77935b0813c045c6e83fd9ad4a;p=gitmo%2FClass-MOP.git diff --git a/mop.c b/mop.c index feae858..126568d 100644 --- a/mop.c +++ b/mop.c @@ -1,7 +1,7 @@ #include "mop.h" void -mop_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *), CV *cv, SV **mark) +mop_call_xs (pTHX_ XSPROTO(subaddr), CV *cv, SV **mark) { dSP; PUSHMARK(mark); @@ -222,13 +222,13 @@ static struct { DECLARE_KEY(ISA) }; -inline SV * +SV * mop_prehashed_key_for (mop_prehashed_key_t key) { return prehashed_keys[key].key; } -inline U32 +U32 mop_prehashed_hash_for (mop_prehashed_key_t key) { return prehashed_keys[key].hash; @@ -253,7 +253,7 @@ XS(mop_xs_simple_reader) dXSARGS; #endif register HE *he; - mop_prehashed_key_t key = CvXSUBANY(cv).any_i32; + mop_prehashed_key_t key = (mop_prehashed_key_t)CvXSUBANY(cv).any_i32; SV *self; if (items != 1) {