Skip to content

Commit

Permalink
Fix gcov2perl to work with large numbers.
Browse files Browse the repository at this point in the history
rt 45028.
Reported and fixed by Thomas Dorner.
  • Loading branch information
pjcj committed May 8, 2010
1 parent 9add51b commit 95aa629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
@@ -1,5 +1,8 @@
Devel::Cover.pm history

Release 0.68 -
- Fix gcov2perl to work with large numbers (Thomas Dorner) (rt 45028).

Release 0.67 - 8th May 2010
- Fix up the Makefile for dmake on Strawberry Perl (Curtis Jewell) (rt 50774).

Expand Down
3 changes: 1 addition & 2 deletions gcov2perl
Expand Up @@ -58,8 +58,7 @@ sub add_cover
open F, $file or die "Can't open $file: $!\n";
while (<F>)
{
next unless my ($count, $line) = /(.{9}):\s*(\d+):/;
$count =~ s/\s+//g;
next unless my ($count, $line) = /^\s*([-0-9#]+):\s*(\d+):/;
next if $count eq "-";
$count = 0 if $count eq "#####";

Expand Down

0 comments on commit 95aa629

Please sign in to comment.