Skip to content

Commit

Permalink
Fix issue with "u"
Browse files Browse the repository at this point in the history
Caused by running value() in a scope that didn't have a valid $/
  • Loading branch information
lizmat committed Apr 9, 2019
1 parent 7450538 commit d000a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/Internals/Sprintf.pm6
Expand Up @@ -250,7 +250,7 @@ class Rakudo::Internals::Sprintf {
method directive:sym<u>($/ --> Nil) {

# handle unsigned check
my str $value = "unsigned-int({value($/)})";
my str $value = "unsigned-int(" ~ value($/) ~ ")";

# handle zero padding / left / right justification
if +$<size> -> $size {
Expand Down

0 comments on commit d000a12

Please sign in to comment.