Commit 395ede86215f8d392107b77852df5ae0922afa22
1 parent
4043090f
update3 withHash
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
treeh.c
... | ... | @@ -46,13 +46,13 @@ int hash(char c){ |
46 | 46 | //needs to check c wether isalpha or '\'' |
47 | 47 | if(c='\'') |
48 | 48 | return 0; |
49 | - return c%64; | |
49 | + return c%32; | |
50 | 50 | } |
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | 54 | // |
55 | -bool addto_tree(tree t,string s,bool isIn){ | |
55 | +bool addto_tree(tree t,string s,unsigned int index,bool isIn){ | |
56 | 56 | //recursive, when called : set isIn to true |
57 | 57 | //return wether s is already in t or not |
58 | 58 | if(s[0]=='\0'){ | ... | ... |