From 2e433653cce277bd58400c1641d236be88b41a35 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 19 Oct 2022 09:42:16 -0500 Subject: [PATCH] Avoid warning message on clang --- src/source.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source.cpp b/src/source.cpp index fc50115cd..d201e3c03 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -224,7 +224,8 @@ SourceSite IndependentSource::sample(uint64_t* seed) const auto id = (domain_type_ == DomainType::CELL) ? model::cells[coord.cell]->id_ : model::universes[coord.universe]->id_; - if (found = contains(domain_ids_, id)) break; + if ((found = contains(domain_ids_, id))) + break; } } }