Skip to content

Commit b56c32a

Browse files
committed
[libs][arch] return -1 if valid index is not found
1 parent b7b04f4 commit b56c32a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/libarchfpga/src/vib_inf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ 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+
130+
return size_t(-1);
129131
}
130132

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

0 commit comments

Comments
 (0)