Skip to content

Commit 9ec0a74

Browse files
The9CatCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 7dd3067 commit 9ec0a74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Component.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,8 @@ void Component::read_bodies_and_distribute_hdf5(void)
17041704
// Some ranks may legitimately receive 0 particles (e.g., more ranks than particles).
17051705
// In that case, ship an empty batch and skip all dataset reads.
17061706
if (nbodies_table[n] == 0) {
1707-
pf->ShipParticles(n, 0, 0);
1707+
unsigned zero = 0;
1708+
pf->ShipParticles(n, 0, zero);
17081709
continue;
17091710
}
17101711

0 commit comments

Comments
 (0)