Skip to content

Commit 052461d

Browse files
get rid of warnings in RRSpatialLookup::find_nodes()
1 parent 3f3a5a9 commit 052461d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/librrgraph/src/base/rr_spatial_lookup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ std::vector<RRNodeId> RRSpatialLookup::find_nodes(int layer,
116116
return nodes;
117117
}
118118

119-
if (x >= rr_node_indices_[type].dim_size(1)) {
119+
if (size_t(x) >= rr_node_indices_[type].dim_size(1)) {
120120
return nodes;
121121
}
122122

123-
if(y >= rr_node_indices_[type].dim_size(2)){
123+
if (size_t(y) >= rr_node_indices_[type].dim_size(2)){
124124
return nodes;
125125
}
126126

0 commit comments

Comments
 (0)