From: gfx Date: Sun, 11 Apr 2010 02:28:05 +0000 (+0900) Subject: Tweaks X-Git-Tag: 0.53~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60cd9f19cf891bd7bff4ca33efa71bb3e95f0cb9;p=gitmo%2FMouse.git Tweaks --- diff --git a/xs-src/Mouse.xs b/xs-src/Mouse.xs index f27c52f..5c7e623 100644 --- a/xs-src/Mouse.xs +++ b/xs-src/Mouse.xs @@ -294,7 +294,7 @@ static void mouse_class_initialize_object(pTHX_ SV* const meta, SV* const object, HV* const args, bool const is_cloning) { AV* const xc = mouse_get_xc(aTHX_ meta); AV* const attrs = MOUSE_xc_attrall(xc); - I32 len = AvFILLp(attrs) + 1; + I32 const len = AvFILLp(attrs) + 1; I32 i; AV* triggers_queue = NULL; I32 used = 0; @@ -355,7 +355,7 @@ mouse_class_initialize_object(pTHX_ SV* const meta, SV* const object, HV* const } if(triggers_queue){ - len = AvFILLp(triggers_queue) + 1; + I32 const len = AvFILLp(triggers_queue) + 1; for(i = 0; i < len; i++){ AV* const pair = (AV*)AvARRAY(triggers_queue)[i]; SV* const trigger = AvARRAY(pair)[0];