Skip to content

Commit

Permalink
Fix warnings about size_t/int conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Aug 3, 2024
1 parent 5916d89 commit 05935ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oneD/Sim1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 05935ff

Please sign in to comment.