File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
barretenberg/cpp/src/barretenberg/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ void AggregateEntry::add_thread_time_sample(const TimeAndCount& stats)
181181 // Account for aggregate time and count
182182 time += stats.time ;
183183 count += stats.count ;
184- time_max = std::max (stats.time , time_max);
184+ time_max = std::max (static_cast < size_t >( stats.time ) , time_max);
185185 // Use Welford's method to be able to track the variance
186186 num_threads++;
187187 double delta = static_cast <double >(stats.time ) - time_mean;
@@ -526,7 +526,7 @@ void GlobalBenchStatsContainer::print_aggregate_counts_hierarchical(std::ostream
526526 uint64_t total_time = 0 ;
527527 for (const auto & [_, parent_map] : aggregated) {
528528 if (auto it = parent_map.find (" " ); it != parent_map.end ()) {
529- total_time = std::max (total_time, it->second .time_max );
529+ total_time = std::max (static_cast < size_t >( total_time) , it->second .time_max );
530530 }
531531 }
532532
You can’t perform that action at this time.
0 commit comments