From 4b28f2cd4e3163a5c10c6b496d410b71518619b2 Mon Sep 17 00:00:00 2001 From: Daniel Green Date: Sat, 9 Jun 2018 14:33:53 -0400 Subject: [PATCH] Fix arg type in X::Str::Sprintf::Directives::Count `$.args-have` used to get its value from a `numify` call (which returned a num). It now gets it from `nqp::elems` which returns an int. --- src/core/Exception.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Exception.pm6 b/src/core/Exception.pm6 index d9537f78359..440f68c0b7b 100644 --- a/src/core/Exception.pm6 +++ b/src/core/Exception.pm6 @@ -2040,7 +2040,7 @@ my class X::Str::Trans::InvalidArg is Exception { my class X::Str::Sprintf::Directives::Count is Exception { has int $.args-used; - has num $.args-have; + has int $.args-have; method message() { "Your printf-style directives specify " ~ ($.args-used == 1 ?? "1 argument, but "