Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
ac9f23cc
Verified
Commit
ac9f23cc
authored
Jun 12, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Remove gcc warnings when != signed comparaison
parent
660006e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/parametragemodele.cpp
View file @
ac9f23cc
...
...
@@ -391,7 +391,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) {
seuilValidator
->
setRange
(
0
,
1
);
layouth1
->
addWidget
(
seuilMin
);
for
(
unsigned
int
i
=
0
;
i
<
8
;
i
++
)
{
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
numSeuilMin
[
i
]
=
new
QLineEdit
;
numSeuilMin
[
i
]
->
setFixedWidth
(
22
);
numSeuilMin
[
i
]
->
setMaxLength
(
2
);
...
...
@@ -404,7 +404,7 @@ void NouveauModele::paramRegle(const QString& choix_regle) {
layouth2
->
addWidget
(
seuilMax
);
for
(
unsigned
int
i
=
0
;
i
<
8
;
i
++
)
{
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
numSeuilMax
[
i
]
=
new
QLineEdit
;
numSeuilMax
[
i
]
->
setFixedWidth
(
22
);
numSeuilMax
[
i
]
->
setMaxLength
(
2
);
...
...
src/voisinage.cpp
View file @
ac9f23cc
...
...
@@ -5,10 +5,10 @@
void
RegleVoisinageNeumann
::
calculVoisinage
(
Voisinage
&
v
,
const
Reseau
&
r
)
const
{
v
.
voisinage
=
std
::
vector
<
Cellule
*>
();
unsigned
int
cellX
=
v
.
celluleCentre
->
abs
;
unsigned
int
cellY
=
v
.
celluleCentre
->
ord
;
unsigned
int
hauteur
=
r
.
getHauteur
();
unsigned
int
largeur
=
r
.
getLargeur
();
int
cellX
=
static_cast
<
int
>
(
v
.
celluleCentre
->
abs
)
;
int
cellY
=
static_cast
<
int
>
(
v
.
celluleCentre
->
ord
)
;
int
hauteur
=
static_cast
<
int
>
(
r
.
getHauteur
()
)
;
int
largeur
=
static_cast
<
int
>
(
r
.
getLargeur
()
)
;
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
++
)
...
...
@@ -31,8 +31,8 @@ void RegleVoisinageMoore::calculVoisinage(Voisinage& v, const Reseau& r) const {
v
.
voisinage
=
std
::
vector
<
Cellule
*>
();
int
cellX
=
static_cast
<
int
>
(
v
.
celluleCentre
->
abs
);
int
cellY
=
static_cast
<
int
>
(
v
.
celluleCentre
->
ord
);
int
hauteur
=
r
.
getHauteur
();
int
largeur
=
r
.
getLargeur
();
int
hauteur
=
static_cast
<
int
>
(
r
.
getHauteur
()
)
;
int
largeur
=
static_cast
<
int
>
(
r
.
getLargeur
()
)
;
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
++
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment