@@ -631,8 +631,8 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
631
631
static vtr::OffsetMatrix<int > chany_track; /* [0..device_ctx.grid.width() - 2][1..device_ctx.grid.height() - 2] */
632
632
if (draw_state->draw_route_type == GLOBAL) {
633
633
/* 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 ();
636
636
if (chanx_track.empty ()) {
637
637
chanx_track = vtr::OffsetMatrix<int >({{{1 , width - 1 }, {0 , height - 1 }}});
638
638
}
@@ -641,12 +641,12 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
641
641
chany_track = vtr::OffsetMatrix<int >({{{0 , width - 1 }, {1 , height - 1 }}});
642
642
}
643
643
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++)
646
646
chanx_track[i][j] = (-1 );
647
647
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++)
650
650
chany_track[i][j] = (-1 );
651
651
}
652
652
0 commit comments