[fix] phrases

This commit is contained in:
Al
2015-09-18 13:19:18 -04:00
parent b74e92adad
commit f2f7db92ff

View File

@@ -173,7 +173,7 @@ bool trie_search_from_index(trie_t *self, char *text, uint32_t start_node_id, ph
}
inline bool trie_search_with_phrases(trie_t *self, char *str, phrase_array **phrases) {
return trie_search_from_index(self, str, ROOT_NODE_ID, &phrases);
return trie_search_from_index(self, str, ROOT_NODE_ID, phrases);
}
inline phrase_array *trie_search(trie_t *self, char *text) {
@@ -417,7 +417,7 @@ bool trie_search_tokens_from_index(trie_t *self, char *str, token_array *tokens,
}
inline bool trie_search_tokens_with_phrases(trie_t *self, char *str, token_array *tokens, phrase_array **phrases) {
return trie_search_tokens_from_index(self, str, tokens, ROOT_NODE_ID, &phrases);
return trie_search_tokens_from_index(self, str, tokens, ROOT_NODE_ID, phrases);
}
inline phrase_array *trie_search_tokens(trie_t *self, char *str, token_array *tokens) {