Skip to content

Commit f1fe0e6

Browse files
committed
equivalent: add referenced veriable in for loop
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent f0357c5 commit f1fe0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/util/vpr_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ std::string block_type_pin_index_to_name(t_physical_tile_type_ptr type, int pin_
219219
pin_name += ".";
220220

221221
int curr_index = 0;
222-
for (auto const port : type->ports) {
222+
for (auto const& port : type->ports) {
223223
if (curr_index + port.num_pins > pin_index) {
224224
//This port contains the desired pin index
225225
int index_in_port = pin_index - curr_index;

0 commit comments

Comments
 (0)