Skip to content

Commit

Permalink
Update components/core/src/clp/BoundedReader.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: haiqi96 <[email protected]>
  • Loading branch information
gibber9809 and haiqi96 authored Dec 8, 2024
1 parent 8977dc4 commit 93c7d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core/src/clp/BoundedReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace clp {
auto BoundedReader::try_seek_from_begin(size_t pos) -> ErrorCode {
auto next_pos = pos > m_bound ? m_bound : pos;
auto const next_pos = pos > m_bound ? m_bound : pos;
if (auto const rc = m_reader->try_seek_from_begin(next_pos); ErrorCode_Success != rc) {
m_curr_pos = ErrorCode_EndOfFile == rc ? next_pos : m_curr_pos;
return rc;
Expand Down

0 comments on commit 93c7d3b

Please sign in to comment.