From dba4319dbbde820921615935c6ddaa29dddc4109 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Tue, 3 Sep 2019 14:20:38 +0200 Subject: [PATCH] Used the aligned array in io_count_dm_background_gparts() --- src/common_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common_io.c b/src/common_io.c index 63faace19f..25abb187a7 100644 --- a/src/common_io.c +++ b/src/common_io.c @@ -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; -- GitLab