Skip to content

Commit bc52df7

Browse files
committed
fix types
1 parent e9b20a8 commit bc52df7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tallies/filter_material.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ void MaterialFilter::set_materials(span<const int32_t> materials)
3737
materials_.reserve(materials.size());
3838
map_.clear();
3939

40+
int32_t size = model::materials.size();
41+
4042
// Update materials and mapping
4143
for (auto& index : materials) {
4244
assert(index >= MATERIAL_VOID);
43-
assert(index < model::materials.size());
45+
assert(index < size);
4446
materials_.push_back(index);
4547
map_[index] = materials_.size() - 1;
4648
}

0 commit comments

Comments
 (0)