From 05935ff83dc46b6acf9d57fadcebb238b3786b4c Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sat, 3 Aug 2024 10:04:15 -0400 Subject: [PATCH] Fix warnings about size_t/int conversions --- src/oneD/Sim1D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oneD/Sim1D.cpp b/src/oneD/Sim1D.cpp index 3d03688afe..d6da66b344 100644 --- a/src/oneD/Sim1D.cpp +++ b/src/oneD/Sim1D.cpp @@ -751,7 +751,7 @@ void Sim1D::setLeftControlPoint(double temperature) if ((current_val - temperature) * (next_val - temperature) < 0.0) { // Pick the coordinate of the point with the temperature closest // to the desired temperature - int index = 0; + size_t index = 0; if (std::abs(current_val - temperature) < std::abs(next_val - temperature)) { index = m; @@ -802,7 +802,7 @@ void Sim1D::setRightControlPoint(double temperature) if ((current_val - temperature) * (next_val - temperature) < 0.0) { // Pick the coordinate of the point with the temperature closest // to the desired temperature - int index = 0; + size_t index = 0; if (std::abs(current_val - temperature) < std::abs(next_val - temperature)) { index = m;