Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
properly box sprintfdirective's return value
  • Loading branch information
FROGGS committed Aug 25, 2013
1 parent cacdd1b commit 83180ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/EnumMap.pm
Expand Up @@ -98,8 +98,8 @@ my class EnumMap does Associative { # declared in BOOTSTRAP
$!storage
}

method fmt(EnumMap: $format = "%s\t\%s", $sep = "\n") {
if nqp::sprintfdirectives($format) == 1 {
method fmt(EnumMap: Cool $format = "%s\t\%s", $sep = "\n") {
if nqp::p6box_i(nqp::sprintfdirectives( nqp::unbox_s($format.Stringy) )) == 1 {
self.keys.fmt($format, $sep);
}
else {
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2013.08-12-g96bacd7
2013.08-14-g3c2b6e3

0 comments on commit 83180ce

Please sign in to comment.