From 5d6efe6c57b7650155d8fb3e96b2dab197ff3f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C5=8Dan?= Date: Sun, 29 Mar 2026 14:06:39 -0600 Subject: [PATCH] simplify: use STAT_T_MAX constant in _stat_for instead of magic literal 13 Replace `( (0) x 13 )` with `( (0) x STAT_T_MAX )` to remove the magic number and its comment. STAT_T_MAX is already used in _normalize_stat_result and is available at this point since the XS module is loaded in BEGIN. Fixes https://github.com/cpan-authors/Overload-FileCheck/issues/65 Co-Authored-By: Claude Sonnet 4.6 --- lib/Overload/FileCheck.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Overload/FileCheck.pm b/lib/Overload/FileCheck.pm index 6238a51..2165daa 100644 --- a/lib/Overload/FileCheck.pm +++ b/lib/Overload/FileCheck.pm @@ -559,7 +559,7 @@ sub stat_as_block { sub _stat_for { my ( $type, $opts ) = @_; - my @stat = ( (0) x 13 ); # STAT_T_MAX + my @stat = ( (0) x STAT_T_MAX ); # set file type if ( defined $type ) {