Skip to content

Commit

Permalink
Merge pull request #1485 from linas/tracon-hash
Browse files Browse the repository at this point in the history
Rework tracon hash function
  • Loading branch information
linas authored Apr 7, 2024
2 parents d9fbf5b + c459879 commit f39cc7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions link-grammar/tracon-set.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ static unsigned int hash_connectors(const Connector *c, unsigned int shallow)
for (; c != NULL; c = c->next)
{
accum = (19 * accum) +
((c->desc->uc_num)<<18) +
(((unsigned int)c->multi)<<31) +
(unsigned int)c->desc->lc_letters;
c->desc->uc_num +
(((unsigned int)c->multi)<<20) +
(((unsigned int)c->desc->lc_letters)<<22);
}

return accum;
Expand Down

0 comments on commit f39cc7e

Please sign in to comment.