diff --git a/src/solver/hydro/management/finalLevelValidator.cpp b/src/solver/hydro/management/finalLevelValidator.cpp index 8986f4b233..343a086416 100644 --- a/src/solver/hydro/management/finalLevelValidator.cpp +++ b/src/solver/hydro/management/finalLevelValidator.cpp @@ -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) { } diff --git a/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp b/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp index d4c6e4b6b0..9c67012c70 100644 --- a/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp +++ b/src/solver/optimisation/HebdoProblemToLpsTranslator.cpp @@ -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");