Skip to content

Commit ec72fff

Browse files
committed
[vib] return -1 if a valid index is not found
1 parent 14680bd commit ec72fff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/libarchfpga/src/vib_inf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ size_t VibInf::medium_mux_index_by_name(const std::string& name) const {
126126
}
127127
}
128128
VTR_LOG_ERROR("No medium mux named %s!", name.c_str());
129+
return size_t(-1);
129130
}
130131

131132
VibDeviceGrid::VibDeviceGrid(std::string grid_name, vtr::NdMatrix<const VibInf*, 3> vib_grid)

0 commit comments

Comments
 (0)