@@ -41,11 +41,12 @@ bool run_search(const Graph& graph, const Graph& subgraph,
4141 std::vector<std::vector<int >>& results) {
4242 size_t cur_size = assignments.size ();
4343 for (int prev_id = 0 ; prev_id < subgraph.getLayersCount (); prev_id++) {
44- size_t amount_connected_s =
44+ int amount_connected_s =
4545 subgraph.getVertexValue (prev_id + 1 ) - subgraph.getVertexValue (prev_id);
4646 for (int j = 0 ; j < amount_connected_s; j++) {
4747 int next_id = subgraph.getEdgeValue (subgraph.getVertexValue (prev_id) + j);
48- if (prev_id < cur_size && next_id < cur_size) {
48+ if (prev_id < static_cast <int >(cur_size) &&
49+ next_id < static_cast <int >(cur_size)) {
4950 if (!has_edge (graph, assignments[prev_id], assignments[next_id])) {
5051 return false ;
5152 }
@@ -63,9 +64,9 @@ bool run_search(const Graph& graph, const Graph& subgraph,
6364 }
6465 // input & output node shouldn't be checked for it's outputs
6566 if (!is_leaf (subgraph, ids[k]) && !is_root (subgraph, ids[k])) {
66- size_t amount_connected_s1 = subgraph.getVertexValue (ids[k] + 1 ) -
67- subgraph.getVertexValue (ids[k]);
68- size_t amount_connected_1 =
67+ int amount_connected_s1 = subgraph.getVertexValue (ids[k] + 1 ) -
68+ subgraph.getVertexValue (ids[k]);
69+ int amount_connected_1 =
6970 graph.getVertexValue (assignments[ids[k]] + 1 ) -
7071 graph.getVertexValue (assignments[ids[k]]);
7172 if (amount_connected_1 != amount_connected_s1) {
@@ -78,7 +79,7 @@ bool run_search(const Graph& graph, const Graph& subgraph,
7879 }
7980
8081 // assumption is good -> return true
81- if (cur_size == subgraph.getLayersCount ()) {
82+ if (static_cast < int >( cur_size) == subgraph.getLayersCount ()) {
8283 return true ;
8384 }
8485
0 commit comments