We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82310ca commit 53a4896Copy full SHA for 53a4896
lib/lcovutil.pm
@@ -2506,9 +2506,13 @@ sub end_line
2506
sub set_end_line
2507
{
2508
my ($self, $line) = @_;
2509
- die('bad end line ' . $self->file() .
2510
- ":$line for " . $self->name() . " start: " . $self->line())
2511
- unless ($line >= $self->line());
+ if ($line < $self->line()) {
+ lcovutil::ignorable_error($lcovutil::ERROR_INCONSISTENT_DATA,
+ '"' . $self->file() . '":' . $self->line() .
2512
+ ': function ' . $self->name() .
2513
+ " end line $line less than start line");
2514
+ return;
2515
+ }
2516
$self->[5] = $line;
2517
}
2518
0 commit comments