Skip to content
Snippets Groups Projects
Commit c108b40a authored by ilor's avatar ilor
Browse files

fix a warning

parent d7ed520d
Branches
No related merge requests found
......@@ -158,7 +158,7 @@ template <typename IndexT>
const std::string& SymbolDictionary<IndexT>::get_string(IndexT id) const
{
size_t idx = static_cast<size_t>(id);
if (id < data_.size()) {
if (idx < data_.size()) {
return data_[idx];
} else {
return nullstr;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment