Skip to content

Commit

Permalink
Merge pull request #3556 from vladpaiu/trie_fixes
Browse files Browse the repository at this point in the history
Fix trie mod crash & clang compilation error
  • Loading branch information
bogdan-iancu authored Jan 15, 2025
2 parents da7da69 + 15f3fc9 commit bdda101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/trie/prefix_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int ptree_children = 0;
trie_char2idx[ (unsigned char)(_c) ]

#define IS_VALID_PREFIX_CHAR(_c) \
((((unsigned char)(_c))<DR_PREFIX_ARRAY_SIZE) && (char)IDX_OF_CHAR(_c)!=-1 )
((((unsigned char)(_c))<DR_PREFIX_ARRAY_SIZE) && ((int)IDX_OF_CHAR(_c) != -1))

int init_prefix_tree( char *extra_prefix_chars )
{
Expand Down
2 changes: 1 addition & 1 deletion modules/trie/trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ static int get_config_from_db(void) {
str partition_col = str_init("partition_name");
str db_url_col = str_init("db_url");
str table_col = str_init("trie_table");
int n_query_col = 4;
int n_query_col = 3;
db_key_t query_cols[] = {&partition_col, &db_url_col, &table_col};
/* query result processing stuff */
int nr_rows_db_config = 0 ;
Expand Down

0 comments on commit bdda101

Please sign in to comment.