From c974bc237515d4b73fa0ca31fa81f07d440829c2 Mon Sep 17 00:00:00 2001 From: Phil Ahrenkiel Date: Thu, 7 Nov 2024 14:24:42 -0700 Subject: [PATCH] Merge cleave-hs-types; fix type conversion. --- src/HPWH.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HPWH.cc b/src/HPWH.cc index 7de11b3d..45270720 100644 --- a/src/HPWH.cc +++ b/src/HPWH.cc @@ -4117,7 +4117,7 @@ void HPWH::initFromFileJSON(nlohmann::json& j) for (std::size_t heatsource_id = 0; heatsource_id < num_heat_sources; ++heatsource_id) { - int iconfig = heat_source_lookup[heatsource_id]; + auto iconfig = heat_source_lookup[heatsource_id]; auto& j_heatsourceconfig = j_heatsourceconfigs[iconfig]; HeatSource* element = nullptr; @@ -4269,7 +4269,7 @@ void HPWH::initFromFileJSON(nlohmann::json& j) // for (std::size_t heatsource_id = 0; heatsource_id < num_heat_sources; ++heatsource_id) { - int iconfig = heat_source_lookup[heatsource_id]; + auto iconfig = heat_source_lookup[heatsource_id]; auto& j_heatsourceconfig = j_heatsourceconfigs[iconfig]; int id;