Skip to content

Commit 3048d8b

Browse files
fix compilation errors in arch_check.cpp
1 parent b021789 commit 3048d8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/libarchfpga/src/arch_check.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void check_port_direct_mappings(t_physical_tile_type_ptr physical_tile, t_sub_ti
101101
if (pb_type->num_pins > (sub_tile->num_phy_pins / sub_tile->capacity.total())) {
102102
archfpga_throw(__FILE__, __LINE__,
103103
"Logical Block (%s) has more pins than the Sub Tile (%s).\n",
104-
logical_block->name, sub_tile->name);
104+
logical_block->name.c_str(), sub_tile->name.c_str());
105105
}
106106

107107
auto& pin_direct_maps = physical_tile->tile_block_pin_directs_map.at(logical_block->index);
@@ -110,7 +110,7 @@ void check_port_direct_mappings(t_physical_tile_type_ptr physical_tile, t_sub_ti
110110
if (pb_type->num_pins != (int)pin_direct_map.size()) {
111111
archfpga_throw(__FILE__, __LINE__,
112112
"Logical block (%s) and Sub tile (%s) have a different number of ports.\n",
113-
logical_block->name, physical_tile->name);
113+
logical_block->name.c_str(), physical_tile->name.c_str());
114114
}
115115

116116
for (auto pin_map : pin_direct_map) {
@@ -126,7 +126,7 @@ void check_port_direct_mappings(t_physical_tile_type_ptr physical_tile, t_sub_ti
126126
|| sub_tile_port->equivalent != block_port->equivalent) {
127127
archfpga_throw(__FILE__, __LINE__,
128128
"Logical block (%s) and Physical tile (%s) do not have equivalent port specifications. Sub tile port %s, logical block port %s\n",
129-
logical_block->name, sub_tile->name, sub_tile_port->name, block_port->name);
129+
logical_block->name.c_str(), sub_tile->name.c_str(), sub_tile_port->name, block_port->name);
130130
}
131131
}
132132
}

0 commit comments

Comments
 (0)