Skip to content

Commit 3f3a5a9

Browse files
cast x/y to size_t
1 parent da5ce31 commit 3f3a5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/librrgraph/src/base/rr_spatial_lookup.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ RRNodeId RRSpatialLookup::find_node(int layer,
4747
return RRNodeId::INVALID();
4848
}
4949

50-
if (x >= rr_node_indices_[type].dim_size(1)) {
50+
if (size_t(x) >= rr_node_indices_[type].dim_size(1)) {
5151
return RRNodeId::INVALID();
5252
}
5353

54-
if(y >= rr_node_indices_[type].dim_size(2)){
54+
if (size_t(y) >= rr_node_indices_[type].dim_size(2)){
5555
return RRNodeId::INVALID();
5656
}
5757

0 commit comments

Comments
 (0)