Skip to content

Commit 505df31

Browse files
gatecatkmurray
authored andcommitted
Change as_float to as_int
Signed-off-by: David Shah <[email protected]>
1 parent cbdb361 commit 505df31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/rr_graph_reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@ void verify_grid(pugi::xml_node parent, const pugiutil::loc_data & loc_data, con
475475

476476
const t_grid_tile& grid_tile = grid[x][y];
477477

478-
if (grid_tile.type->index != get_attribute(grid_node, "block_type_id", loc_data).as_float(0)) {
478+
if (grid_tile.type->index != get_attribute(grid_node, "block_type_id", loc_data).as_int(0)) {
479479
vpr_throw(VPR_ERROR_OTHER, __FILE__, __LINE__,
480480
"Architecture file does not match RR graph's block_type_id at (%d, %d): arch used ID %d, RR graph used ID %d.", x, y,
481-
(grid_tile.type->index), (int)get_attribute(grid_node, "block_type_id", loc_data).as_float(0));
481+
(grid_tile.type->index), get_attribute(grid_node, "block_type_id", loc_data).as_int(0));
482482
}
483483
if (grid_tile.width_offset != get_attribute(grid_node, "width_offset", loc_data).as_float(0)) {
484484
vpr_throw(VPR_ERROR_OTHER, __FILE__, __LINE__,

0 commit comments

Comments
 (0)