diff --git a/src/open.c b/src/open.c
index 133452845af94a1e96758598803f7b8de5e23b71..a985837e0f50cb28635dad44c5617ece147e6704 100644
--- a/src/open.c
+++ b/src/open.c
@@ -74,9 +74,9 @@ int hash_index(char * word) //Fonction de hachage pour nos tables
   size_t last = strlen(word);
   for (size_t i = 0; i<last; i++)
   {
-    if (i == 0) += abs(word[i]-64)
-    if (i == 1) = abs(index-(word[i]-64))
-    if (i == 2) += abs(word[i]-64)
+    if (i == 0) += abs(word[i]-64);
+    if (i == 1) = abs(index-(word[i]-64));
+    if (i == 2) += abs(word[i]-64);
   }
   return index % MAXFLIGHTS
 }