Skip to content

Commit 2e43365

Browse files
committed
Avoid warning message on clang
1 parent 6d499fa commit 2e43365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/source.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ SourceSite IndependentSource::sample(uint64_t* seed) const
224224
auto id = (domain_type_ == DomainType::CELL)
225225
? model::cells[coord.cell]->id_
226226
: model::universes[coord.universe]->id_;
227-
if (found = contains(domain_ids_, id)) break;
227+
if ((found = contains(domain_ids_, id)))
228+
break;
228229
}
229230
}
230231
}

0 commit comments

Comments
 (0)