Skip to content

Commit 1f3c410

Browse files
committed
[VPR] Fix compiler warning
1 parent 3dfafbf commit 1f3c410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/device/rr_spatial_lookup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ std::vector<RRNodeId> RRSpatialLookup::find_sink_nodes(int x,
154154
return sink_nodes;
155155
}
156156

157-
if (x >= rr_node_indices_[SINK].dim_size(0)) {
157+
if (size_t(x) >= rr_node_indices_[SINK].dim_size(0)) {
158158
return sink_nodes;
159159
}
160160

161-
if (y >= rr_node_indices_[SINK].dim_size(1)) {
161+
if (size_t(y) >= rr_node_indices_[SINK].dim_size(1)) {
162162
return sink_nodes;
163163
}
164164

0 commit comments

Comments
 (0)