Skip to content

Commit 05bf83a

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

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_node_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ size_t t_rr_node_storage::count_rr_switches(
412412
}
413413

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

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

0 commit comments

Comments
 (0)