Skip to content

Commit 42b115d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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);

0 commit comments

Comments
 (0)