Skip to content
Snippets Groups Projects
Commit bc835d2c authored by Niels Godbert's avatar Niels Godbert
Browse files

Update open.c

parent 1aaec09e
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment