Skip to content

Commit deba98e

Browse files
authored
fix(bb): darwin build (#16957)
1 parent d7050ac commit deba98e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

barretenberg/cpp/src/barretenberg/common/bb_bench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)