diff --git a/src/common_io.c b/src/common_io.c index 9e1eb0854c0cdeaa0e3db4d89ffcc12c2c458731..5ea80f651989022307c255c3ee935f701edfe3c5 100644 --- a/src/common_io.c +++ b/src/common_io.c @@ -378,7 +378,7 @@ void io_write_engine_policy(hid_t h_file, const struct engine* e) { const hid_t h_grp = H5Gcreate1(h_file, "/Policy", 0); if (h_grp < 0) error("Error while creating policy group"); - for (int i = 1; i <= engine_maxpolicy; ++i) + for (int i = 1; i < engine_maxpolicy; ++i) if (e->policy & (1 << i)) io_write_attribute_i(h_grp, engine_policy_names[i + 1], 1); else