Skip to content

Commit

Permalink
Compilation warnings (#2237)
Browse files Browse the repository at this point in the history
close  #2236
  • Loading branch information
payetvin authored Jul 8, 2024
1 parent 0742047 commit 1c90304
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/solver/hydro/management/finalLevelValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ FinalLevelValidator::FinalLevelValidator(
const unsigned int lastSimulationDay,
const unsigned int firstMonthOfSimulation,
HydroErrorsCollector& errorCollector):
year_(year),
lastSimulationDay_(lastSimulationDay),
firstMonthOfSimulation_(firstMonthOfSimulation),
hydro_(hydro),
areaName_(areaName),
areaIndex_(areaIndex),
areaName_(areaName),
initialLevel_(initialLevel),
finalLevel_(finalLevel),
year_(year),
lastSimulationDay_(lastSimulationDay),
firstMonthOfSimulation_(firstMonthOfSimulation),
errorCollector_(errorCollector)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/solver/optimisation/HebdoProblemToLpsTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ ConstantDataFromAntares HebdoProblemToLpsTranslator::commonProblemData(
throw WeeklyProblemTranslationException("ConstraintesCount must be strictly positive");
}

if (problem->NombreDeContraintes > problem->IndicesDebutDeLigne.size())
if (problem->NombreDeContraintes > (int)problem->IndicesDebutDeLigne.size())
{
throw WeeklyProblemTranslationException(
"ConstraintesCount exceed IndicesDebutDeLigne size");
}

if (problem->NombreDeContraintes > problem->NombreDeTermesDesLignes.size())
if (problem->NombreDeContraintes > (int)problem->NombreDeTermesDesLignes.size())
{
throw WeeklyProblemTranslationException(
"ConstraintesCount exceed NombreDeTermesDesLignes size");
Expand Down

0 comments on commit 1c90304

Please sign in to comment.