X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FChained.pm;fp=lib%2FCatalyst%2FDispatchType%2FChained.pm;h=33e23d20399ab92bfe82eaaf5e3f02a2f2385c52;hp=615f5aa8ff4dbe1f5137cb4b42ebc2d1abb19ea5;hb=cc66256716f67b2866a800fd6c99b126f379422d;hpb=74bebe95e90dced3f66a19a9535a2cf19c3df0ff diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 615f5aa..33e23d2 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -298,7 +298,7 @@ sub _check_args_attr { my $args = $action->attributes->{$name}->[0]; if (defined($args) and not ( Scalar::Util::looks_like_number($args) and - int($args) == $args + int($args) == $args and $args >= 0 )) { require Data::Dumper; local $Data::Dumper::Terse = 1;