mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Add static_cast suggested by @jtramm
This commit is contained in:
parent
901449abe5
commit
ec6fadf77c
1 changed files with 2 additions and 1 deletions
|
|
@ -395,7 +395,8 @@ void collect_sorted_history_secondary_banks(
|
|||
for (const auto& bank : thread_banks) {
|
||||
for (const auto& site : bank) {
|
||||
if (site.parent_id < 0 ||
|
||||
site.parent_id >= simulation::progeny_per_particle.size()) {
|
||||
site.parent_id >=
|
||||
static_cast<int64_t>(simulation::progeny_per_particle.size())) {
|
||||
fatal_error(fmt::format("Invalid parent_id {} for banked site "
|
||||
"(expected range [0, {})).",
|
||||
site.parent_id, simulation::progeny_per_particle.size()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue