Skip to content

Commit

Permalink
Fix spurious reporting of "0" for character positions with no memos a…
Browse files Browse the repository at this point in the history
…t all
  • Loading branch information
sorear committed Feb 27, 2012
1 parent ed8f7dc commit e9fbe21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NieczaFrontendSTD.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ method parse(:$unitname, :$filename, :$source, :$outer, :$run, :$main, :$evalmod
say "Memos used for $*UNITNAME ($source.chars() positions):";
my %memo_count;
for @*MEMOS -> $memo {
$memo // next;
for $memo.keys -> $key {
++%memo_count{$key}
}
Expand Down

0 comments on commit e9fbe21

Please sign in to comment.