We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e6463 commit af1f95bCopy full SHA for af1f95b
src/tokenizer.cpp
@@ -725,7 +725,7 @@ NearestKeywordSearcher::Node *NearestKeywordSearcher::make_tree(std::vector<Item
725
}
726
727
if (items[i].s.size() > 1)
728
- sub.emplace_back(items[i].s.substr(1), items[i].value);
+ sub.emplace_back(items[i].s.substr(1), (int)items[i].value);
729
730
// mark as visited
731
items[i].s = "";
src/tokenizer.h
@@ -206,6 +206,8 @@ class NearestKeywordSearcher
206
{
207
std::string s;
208
int value;
209
+
210
+ Item(const std::string &s, const int value) : s(s), value(value) {}
211
};
212
struct Node
213
0 commit comments