Skip to content

Commit bfc5e11

Browse files
committed
Fix GCC 5/6 warning.
Signed-off-by: Keith Rothman <[email protected]>
1 parent c325e1a commit bfc5e11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vpr/src/route/route_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void pathfinder_update_cost(float pres_fac, float acc_fac) {
468468
}
469469

470470
void init_heap(const DeviceGrid& grid) {
471-
size_t target_heap_size = (grid.width() - 1) * (grid.height() - 1);
471+
ssize_t target_heap_size = (grid.width() - 1) * (grid.height() - 1);
472472
if (heap == nullptr || heap_size < target_heap_size) {
473473
if (heap != nullptr) {
474474
vtr::free(heap + 1);

vpr/src/route/rr_graph_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ size_t t_rr_graph_storage::count_rr_switches(
414414
}
415415

416416
auto fanin = arch_switch_counts[iswitch];
417-
VTR_ASSERT_SAFE(iswitch < (ssize_t)num_arch_switches);
417+
VTR_ASSERT_SAFE(iswitch < num_arch_switches);
418418

419419
if (arch_switch_inf[iswitch].fixed_Tdel()) {
420420
//If delay is independent of fanin drop the unique fanin info

0 commit comments

Comments
 (0)