Skip to content

Commit

Permalink
Fix DCHECK in ErrorDelayingOutputStream.
Browse files Browse the repository at this point in the history
Test: m
Bug: 131173359
Change-Id: If0a3a9b502ccf66734c47138fb1351bcaa4c6cbf
  • Loading branch information
vmarko authored and Treehugger Robot committed Oct 26, 2022
1 parent cc97f11 commit 52b4f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libelffile/stream/error_delaying_output_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ class ErrorDelayingOutputStream final : public OutputStream {
PLOG(ERROR) << "Failed to seek in " << GetLocation() << ". Offset=" << offset
<< " whence=" << whence << " new_offset=" << new_offset;
output_good_ = false;
} else {
DCHECK_EQ(actual_offset, new_offset);
}
DCHECK_EQ(actual_offset, new_offset);
}
output_offset_ = new_offset;
return new_offset;
Expand Down

0 comments on commit 52b4f8d

Please sign in to comment.