Apply suggestions from code review

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2021-08-23 08:09:04 -05:00 committed by GitHub
parent 5f2961cd55
commit d8e4535d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1256,7 +1256,7 @@ Cell::find_parent_cells(vector<ParentCell>& parent_cells, int32_t instance) cons
while (true) {
// find the next lattice cell with this universe
lat_it = std::find(lat_it, lattice_univs.end(), univ_idx);
if (lat_it >= lattice_univs.end()) break;
if (lat_it == lattice_univs.end()) break;
int lattice_idx = lat_it - lattice_univs.begin();