From a0d7c4763bfd67b42bf51047a5d677628efc6e1b Mon Sep 17 00:00:00 2001 From: MET Tools Test Account Date: Thu, 26 Sep 2024 18:46:38 +0000 Subject: [PATCH] Fixes for SonarQube --- src/tools/other/mode_time_domain/mtd_file_float.cc | 4 ++-- src/tools/other/mode_time_domain/mtd_file_int.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/other/mode_time_domain/mtd_file_float.cc b/src/tools/other/mode_time_domain/mtd_file_float.cc index a05dfc2657..bdfacb4e46 100644 --- a/src/tools/other/mode_time_domain/mtd_file_float.cc +++ b/src/tools/other/mode_time_domain/mtd_file_float.cc @@ -642,8 +642,8 @@ MtdFileBase::read(f); // DataMin, DataMax -DataMin = get_att_value_double(&f, min_value_att_name); -DataMax = get_att_value_double(&f, max_value_att_name); +DataMin = (float) get_att_value_double(&f, min_value_att_name); +DataMax = (float) get_att_value_double(&f, max_value_att_name); // Data diff --git a/src/tools/other/mode_time_domain/mtd_file_int.cc b/src/tools/other/mode_time_domain/mtd_file_int.cc index e9e72165d9..2cbe00e400 100644 --- a/src/tools/other/mode_time_domain/mtd_file_int.cc +++ b/src/tools/other/mode_time_domain/mtd_file_int.cc @@ -425,8 +425,8 @@ MtdFileBase::read(f); // DataMin, DataMax -DataMin = get_att_value_double(&f, min_value_att_name); -DataMax = get_att_value_double(&f, max_value_att_name); +DataMin = get_att_value_int(&f, min_value_att_name); +DataMax = get_att_value_int(&f, max_value_att_name); // Data