From: Fuji, Goro Date: Sun, 26 Sep 2010 13:41:42 +0000 (+0900) Subject: Avoid compiler's warnings X-Git-Tag: 0.75~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=05089b6271bfc655b1034e3ceb1e31529a1d754a;p=gitmo%2FMouse.git Avoid compiler's warnings --- diff --git a/xs-src/Mouse.xs b/xs-src/Mouse.xs index 3fa716b..374ab0c 100644 --- a/xs-src/Mouse.xs +++ b/xs-src/Mouse.xs @@ -297,7 +297,7 @@ mouse_class_initialize_object(pTHX_ SV* const meta, SV* const object, HV* const I32 const len = AvFILLp(attrs) + 1; I32 i; AV* triggers_queue = NULL; - U32 used = 0; + I32 used = 0; assert(meta || object); assert(args); @@ -352,7 +352,8 @@ mouse_class_initialize_object(pTHX_ SV* const meta, SV* const object, HV* const } } /* for each attribute */ - if(MOUSE_xc_flags(xc) & MOUSEf_XC_CONSTRUCTOR_IS_STRICT && used < HvUSEDKEYS(args)){ + if(MOUSE_xc_flags(xc) & MOUSEf_XC_CONSTRUCTOR_IS_STRICT + && used < (I32)HvUSEDKEYS(args)){ mouse_report_unknown_args(aTHX_ meta, attrs, args); }