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=2782bef25db3c2baa82b2ea34aa12da4c70f21b7;hpb=08f8d85ca6f74ecf186f0a367bb80dbc4deb63e9 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;