From 8b5a0e9fb02b1bc4994b06f3bbbf23a07dd1259e Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 20 Mar 2023 21:49:26 -0500 Subject: [PATCH] [clib] Fix compiler warning --- src/clib/ct.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clib/ct.cpp b/src/clib/ct.cpp index 173e76c0bc..002a457605 100644 --- a/src/clib/ct.cpp +++ b/src/clib/ct.cpp @@ -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) { @@ -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)));