From 395ede86215f8d392107b77852df5ae0922afa22 Mon Sep 17 00:00:00 2001 From: bjeanlou Date: Tue, 2 Apr 2019 15:57:44 +0200 Subject: [PATCH] update3 withHash --- treeh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treeh.c b/treeh.c index c32fdd7..1b0ba3f 100644 --- a/treeh.c +++ b/treeh.c @@ -46,13 +46,13 @@ int hash(char c){ //needs to check c wether isalpha or '\'' if(c='\'') return 0; - return c%64; + return c%32; } // -bool addto_tree(tree t,string s,bool isIn){ +bool addto_tree(tree t,string s,unsigned int index,bool isIn){ //recursive, when called : set isIn to true //return wether s is already in t or not if(s[0]=='\0'){ -- libgit2 0.21.2