From ebd090ddb8c5b3eca0a9528d1654c63455de4431 Mon Sep 17 00:00:00 2001 From: mckay Date: Sat, 2 Aug 2025 20:39:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20adjust=20shell=5Fto=5Fcell=20resizing=20?= =?UTF-8?q?and=20assignment=20order=20for=20clarity=EF=BC=8Cshell=5Fto=5Fc?= =?UTF-8?q?ell=20=20will=20be=20processed=20not=20only=20when=20components?= =?UTF-8?q?.size()=20!=3D=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- network_process/src/process.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network_process/src/process.cpp b/network_process/src/process.cpp index 8c9aeab..22c6845 100644 --- a/network_process/src/process.cpp +++ b/network_process/src/process.cpp @@ -124,10 +124,10 @@ ISNP_API void build_implicit_network_by_blobtree(const s_settings& shell_links); compute_arrangement_cells(static_cast(shells.size()), shell_links, arrangement_cells); } - shell_to_cell.resize(shells.size()); - for (uint32_t i = 0; i < arrangement_cells.size(); i++) { - for (auto shell : arrangement_cells[i]) shell_to_cell[shell] = i; - } + } + shell_to_cell.resize(shells.size()); + for (uint32_t i = 0; i < arrangement_cells.size(); i++) { + for (auto shell : arrangement_cells[i]) shell_to_cell[shell] = i; } // post process {