File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1033,8 +1033,10 @@ sub removeLine
1033
1033
my ($self , $lineData ) = @_ ;
1034
1034
1035
1035
my $l = $self -> [LINE_DATA]-> [DATA ];
1036
- $l -> {hit } -= $lineData -> curr_count() != 0;
1037
- $l -> {found } -= 1 if $lineData -> in_curr();
1036
+ if ($lineData -> in_curr()) {
1037
+ $l -> {hit } -= $lineData -> curr_count() != 0;
1038
+ $l -> {found } -= 1;
1039
+ }
1038
1040
if ($lcovutil::br_coverage ) {
1039
1041
my $b = $lineData -> current_branch();
1040
1042
if (defined ($b )) {
@@ -3794,7 +3796,7 @@ sub new
3794
3796
push (@lineArray , $line );
3795
3797
}
3796
3798
}
3797
- @lineArray = sort (@lineArray );
3799
+ @lineArray = sort ({ $a <=> $b } @lineArray );
3798
3800
$self -> [INTERESTING_LINES] = \@lineArray ;
3799
3801
$inRegion = InInterestingRegion-> new(@lineArray );
3800
3802
}
You can’t perform that action at this time.
0 commit comments