Skip to content

Commit 6f5a3aa

Browse files
fix compilation warnings
1 parent 888ac89 commit 6f5a3aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
631631
static vtr::OffsetMatrix<int> chany_track; /* [0..device_ctx.grid.width() - 2][1..device_ctx.grid.height() - 2] */
632632
if (draw_state->draw_route_type == GLOBAL) {
633633
/* Allocate some temporary storage if it's not already available. */
634-
size_t width = device_ctx.grid.width();
635-
size_t height = device_ctx.grid.height();
634+
int width = (int)device_ctx.grid.width();
635+
int height = (int)device_ctx.grid.height();
636636
if (chanx_track.empty()) {
637637
chanx_track = vtr::OffsetMatrix<int>({{{1, width - 1}, {0, height - 1}}});
638638
}
@@ -641,12 +641,12 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
641641
chany_track = vtr::OffsetMatrix<int>({{{0, width - 1}, {1, height - 1}}});
642642
}
643643

644-
for (size_t i = 1; i < width - 1; i++)
645-
for (size_t j = 0; j < height - 1; j++)
644+
for (int i = 1; i < width - 1; i++)
645+
for (int j = 0; j < height - 1; j++)
646646
chanx_track[i][j] = (-1);
647647

648-
for (size_t i = 0; i < width - 1; i++)
649-
for (size_t j = 1; j < height - 1; j++)
648+
for (int i = 0; i < width - 1; i++)
649+
for (int j = 1; j < height - 1; j++)
650650
chany_track[i][j] = (-1);
651651
}
652652

0 commit comments

Comments
 (0)