Verified Commit ac9f23cc authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Remove gcc warnings when != signed comparaison

parent 660006e5
...@@ -391,7 +391,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) { ...@@ -391,7 +391,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) {
seuilValidator->setRange(0,1); seuilValidator->setRange(0,1);
layouth1->addWidget(seuilMin); layouth1->addWidget(seuilMin);
for(unsigned int i=0; i<8; i++) { for(int i=0; i<8; i++) {
numSeuilMin[i]=new QLineEdit; numSeuilMin[i]=new QLineEdit;
numSeuilMin[i]->setFixedWidth(22); numSeuilMin[i]->setFixedWidth(22);
numSeuilMin[i]->setMaxLength(2); numSeuilMin[i]->setMaxLength(2);
...@@ -404,7 +404,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) { ...@@ -404,7 +404,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) {
layouth2->addWidget(seuilMax); layouth2->addWidget(seuilMax);
for(unsigned int i=0; i<8; i++) { for(int i=0; i<8; i++) {
numSeuilMax[i]=new QLineEdit; numSeuilMax[i]=new QLineEdit;
numSeuilMax[i]->setFixedWidth(22); numSeuilMax[i]->setFixedWidth(22);
numSeuilMax[i]->setMaxLength(2); numSeuilMax[i]->setMaxLength(2);
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
void RegleVoisinageNeumann::calculVoisinage(Voisinage& v, const Reseau& r) const { void RegleVoisinageNeumann::calculVoisinage(Voisinage& v, const Reseau& r) const {
v.voisinage = std::vector<Cellule*>(); v.voisinage = std::vector<Cellule*>();
unsigned int cellX = v.celluleCentre->abs; int cellX = static_cast<int>(v.celluleCentre->abs);
unsigned int cellY = v.celluleCentre->ord; int cellY = static_cast<int>(v.celluleCentre->ord);
unsigned int hauteur = r.getHauteur(); int hauteur = static_cast<int>(r.getHauteur());
unsigned int largeur = r.getLargeur(); int largeur = static_cast<int>(r.getLargeur());
for (int i = -static_cast<int>(rayon); i <= static_cast<int>(rayon); i++) for (int i = -static_cast<int>(rayon); i <= static_cast<int>(rayon); i++)
for (int j = -static_cast<int>(rayon); j <= static_cast<int>(rayon); j++) for (int j = -static_cast<int>(rayon); j <= static_cast<int>(rayon); j++)
...@@ -31,8 +31,8 @@ void RegleVoisinageMoore::calculVoisinage(Voisinage& v, const Reseau& r) const { ...@@ -31,8 +31,8 @@ void RegleVoisinageMoore::calculVoisinage(Voisinage& v, const Reseau& r) const {
v.voisinage = std::vector<Cellule*>(); v.voisinage = std::vector<Cellule*>();
int cellX = static_cast<int>(v.celluleCentre->abs); int cellX = static_cast<int>(v.celluleCentre->abs);
int cellY = static_cast<int>(v.celluleCentre->ord); int cellY = static_cast<int>(v.celluleCentre->ord);
int hauteur = r.getHauteur(); int hauteur = static_cast<int>(r.getHauteur());
int largeur = r.getLargeur(); int largeur = static_cast<int>(r.getLargeur());
for (int i = -static_cast<int>(rayon); i <= static_cast<int>(rayon); i++) for (int i = -static_cast<int>(rayon); i <= static_cast<int>(rayon); i++)
for (int j = -static_cast<int>(rayon); j <= static_cast<int>(rayon); j++) for (int j = -static_cast<int>(rayon); j <= static_cast<int>(rayon); j++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment