Skip to content

Commit

Permalink
Fix arg type in X::Str::Sprintf::Directives::Count
Browse files Browse the repository at this point in the history
`$.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.
  • Loading branch information
MasterDuke17 committed Jun 9, 2018
1 parent cbb5ee5 commit 4b28f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Exception.pm6
Expand Up @@ -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 "
Expand Down

0 comments on commit 4b28f2c

Please sign in to comment.