Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not try to intify a missing argument
return zero instead and let the check for the right number of arguments
do its job later on

fixes RT #122907
  • Loading branch information
usev6 committed Jan 15, 2015
1 parent a6537dd commit f2577cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HLL/sprintf.nqp
Expand Up @@ -89,6 +89,9 @@ my module sprintf {
}

sub intify($number_representation) {
if $number_representation =:= NQPMu {
return $zero; ## missing argument is handled in method TOP
}
for @handlers -> $handler {
if $handler.mine($number_representation) {
return $handler.int($number_representation);
Expand Down

0 comments on commit f2577cb

Please sign in to comment.