mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Improve Language::Hash too.
This commit is contained in:
parent
68efd51b56
commit
d9835952b7
1 changed files with 3 additions and 3 deletions
|
@ -289,9 +289,9 @@ public:
|
||||||
{
|
{
|
||||||
size_t operator()(const Language& language) const
|
size_t operator()(const Language& language) const
|
||||||
{
|
{
|
||||||
size_t hash = std::hash<const char*>{}(language.tag);
|
size_t seed = std::hash<const char*>{}(language.tag);
|
||||||
hash ^= tableHash[getIndexFromTag(language.tag)](&language.buffer);
|
hashCombine(seed, tableHash[getIndexFromTag(language.tag)](&language.buffer));
|
||||||
return hash;
|
return seed;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue