Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
3d8f6160
Commit
3d8f6160
authored
Dec 01, 2016
by
Max Lyon
Browse files
int size_t fixes
parent
098dab80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Solver/MISolver.cc
View file @
3d8f6160
...
...
@@ -266,7 +266,7 @@ MISolver::solve_direct_rounding(
std
::
sort
(
to_round
.
begin
(),
to_round
.
end
());
Veci
::
iterator
last_unique
;
last_unique
=
std
::
unique
(
to_round
.
begin
(),
to_round
.
end
());
in
t
r
=
last_unique
-
to_round
.
begin
();
size_
t
r
=
(
size_t
)(
last_unique
-
to_round
.
begin
()
)
;
to_round
.
resize
(
r
);
// initalize old indices
...
...
@@ -425,7 +425,7 @@ MISolver::solve_iterative(
std
::
sort
(
to_round
.
begin
(),
to_round
.
end
());
Veci
::
iterator
last_unique
;
last_unique
=
std
::
unique
(
to_round
.
begin
(),
to_round
.
end
());
in
t
r
=
last_unique
-
to_round
.
begin
();
size_
t
r
=
(
size_t
)(
last_unique
-
to_round
.
begin
()
)
;
to_round
.
resize
(
r
);
}
...
...
@@ -641,7 +641,7 @@ void MISolver::solve_multiple_rounding(
std
::
sort
(
to_round
.
begin
(),
to_round
.
end
());
Veci
::
iterator
last_unique
;
last_unique
=
std
::
unique
(
to_round
.
begin
(),
to_round
.
end
());
in
t
r
=
last_unique
-
to_round
.
begin
();
size_
t
r
=
(
size_t
)(
last_unique
-
to_round
.
begin
()
)
;
to_round
.
resize
(
r
);
// initialize old indices
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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