Skip to content

Commit

Permalink
[clib] Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Mar 21, 2023
1 parent 3ea2510 commit 8b5a0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clib/ct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ extern "C" {
soln = newInterface(infile, name, adj);
} else {
soln = newInterface(infile, name);
for (int i = 0; i < soln->nAdjacent(); i++) {
for (size_t i = 0; i < soln->nAdjacent(); i++) {
// add automatically loaded adjacent solutions
auto adj = soln->adjacent(i);
if (SolutionCabinet::index(*adj) < 0) {
Expand Down Expand Up @@ -215,7 +215,7 @@ extern "C" {
{
try {
auto soln = SolutionCabinet::at(n);
if (a < 0 || a >= soln->nAdjacent()) {
if (a < 0 || a >= (int)soln->nAdjacent()) {
return -1;
}
return SolutionCabinet::index(*(soln->adjacent(a)));
Expand Down

0 comments on commit 8b5a0e9

Please sign in to comment.