From d8e4535d51cb71661913617bd2ce6353e51fcde6 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 23 Aug 2021 08:09:04 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Paul Romano --- src/cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cell.cpp b/src/cell.cpp index accec7d08a..61520709bf 100644 --- a/src/cell.cpp +++ b/src/cell.cpp @@ -1256,7 +1256,7 @@ Cell::find_parent_cells(vector& 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();