X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xs-src%2FMouseTypeConstraints.xs;h=096ce4aba57709b4f5c9f5445aafcd19e95bbd35;hb=fe5044b1eadf100f8cfa55cdc3b8d59e9aa52d5b;hp=420703e3808aaa7c9f3f3e1f07edfd01ad9c74af;hpb=678d19020b3220372bf3208506cd48b9f8c382b8;p=gitmo%2FMouse.git diff --git a/xs-src/MouseTypeConstraints.xs b/xs-src/MouseTypeConstraints.xs index 420703e..096ce4a 100644 --- a/xs-src/MouseTypeConstraints.xs +++ b/xs-src/MouseTypeConstraints.xs @@ -7,7 +7,7 @@ #if PERL_BCDVERSION >= 0x5008005 #define LooksLikeNumber(sv) looks_like_number(sv) #else -#define LooksLikeNumber(sv) ( SvPOKp(sv) ? looks_like_number(sv) : SvNIOKp(sv) ) +#define LooksLikeNumber(sv) ( SvPOKp(sv) ? looks_like_number(sv) : (I32)SvNIOKp(sv) ) #endif #ifndef SvRXOK @@ -125,7 +125,7 @@ S_nv_is_integer(pTHX_ NV const nv) { else { char buf[64]; /* Must fit sprintf/Gconvert of longest NV */ char* p; - Gconvert(nv, NV_DIG, 0, buf); + (void)Gconvert(nv, NV_DIG, 0, buf); p = &buf[0]; /* -?[0-9]+ */ @@ -392,7 +392,7 @@ mouse_lookup_isa(pTHX_ HV* const instance_stash, const char* const klass_pv){ #define find_method_pvn(a, b, c) mouse_stash_find_method(aTHX_ a, b, c) #define find_method_pvs(a, b) mouse_stash_find_method(aTHX_ a, STR_WITH_LEN(b)) -static inline GV* +STATIC_INLINE GV* mouse_stash_find_method(pTHX_ HV* const stash, const char* const name, I32 const namelen){ GV** const gvp = (GV**)hv_fetch(stash, name, namelen, FALSE); if(gvp && isGV(*gvp) && GvCV(*gvp)){ /* shortcut */