Skip to content
Snippets Groups Projects
Commit dba4319d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Used the aligned array in io_count_dm_background_gparts()

parent e921d73b
No related branches found
No related tags found
No related merge requests found
......@@ -1712,11 +1712,11 @@ size_t io_count_dm_background_gparts(const struct gpart* const gparts,
const size_t Ndm) {
swift_declare_aligned_ptr(const struct gpart, gparts_array, gparts,
gpart_align);
SWIFT_STRUCT_ALIGNMENT);
size_t count = 0;
for (size_t i = 0; i < Ndm; ++i) {
if (gparts[i].type == swift_type_dark_matter_background) ++count;
if (gparts_array[i].type == swift_type_dark_matter_background) ++count;
}
return count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment