From 56c879d95c5b8752e62508396ffca61ba4b69aff Mon Sep 17 00:00:00 2001 From: David Grote Date: Fri, 15 Oct 2021 10:22:56 -0700 Subject: Made explicit several casts (#2431) --- Source/Utils/WarpXUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Utils/WarpXUtil.cpp') diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index 64b30a9b1..a96e62748 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -393,7 +393,7 @@ queryWithParser (const amrex::ParmParse& a_pp, char const * const str, float& va // If so, create a parser object and apply it to the value provided by the user. std::string str_val; Store_parserString(a_pp, str, str_val); - val = parseStringtoReal(str_val); + val = static_cast(parseStringtoReal(str_val)); } // return the same output as amrex::ParmParse::query return is_specified; @@ -405,7 +405,7 @@ getWithParser (const amrex::ParmParse& a_pp, char const * const str, float& val) // If so, create a parser object and apply it to the value provided by the user. std::string str_val; Store_parserString(a_pp, str, str_val); - val = parseStringtoReal(str_val); + val = static_cast(parseStringtoReal(str_val)); } int -- cgit v1.2.3