Skip to content

Commit

Permalink
Fix x86 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed May 7, 2021
1 parent 11233a0 commit 1793ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/logdata/src/logfiltereddata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void LogFilteredData::handleSearchProgressed( LinesCount nbMatches, int progress
if ( progress == 100 && config.useSearchResultsCache()
&& nbLinesProcessed_.get() == getExpectedSearchEnd( currentSearchKey_ ).get() ) {

const auto maxCacheLines = static_cast<size_t>( config.searchResultsCacheLines() );
const auto maxCacheLines = static_cast<uint64_t>( config.searchResultsCacheLines() );

if ( matching_lines_.cardinality() > maxCacheLines ) {
LOG_DEBUG << "LogFilteredData: too many matches to place in cache";
Expand All @@ -352,7 +352,7 @@ void LogFilteredData::handleSearchProgressed( LinesCount nbMatches, int progress
searchResultsCache_[ currentSearchKey_ ] = { matching_lines_, maxLength_ };

auto cacheSize = std::accumulate(
searchResultsCache_.cbegin(), searchResultsCache_.cend(), std::size_t{},
searchResultsCache_.cbegin(), searchResultsCache_.cend(), std::uint64_t{},
[]( auto val, const auto& cachedResults ) {
return val + cachedResults.second.matching_lines.cardinality();
} );
Expand Down Expand Up @@ -477,7 +477,7 @@ LogFilteredData::doGetLines( LineNumber first_line, LinesCount number,
// Implementation of the virtual function.
LinesCount LogFilteredData::doGetNbLine() const
{
size_t nbLines = currentResultArray().cardinality();
const auto nbLines = currentResultArray().cardinality();
return LinesCount( static_cast<LinesCount::UnderlyingType>( nbLines ) );
}

Expand Down

0 comments on commit 1793ba7

Please sign in to comment.