1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-13 15:20:53 +01:00

fix mistake

This commit is contained in:
birds3345 2024-07-17 13:58:05 -04:00
parent aef6dd715b
commit 9b401ae1d6

View file

@ -37,8 +37,9 @@ Id UnionFind::find(Id id)
{ {
// Note: we don't update the ranks here since a rank // Note: we don't update the ranks here since a rank
// represents the upper bound on the maximum depth of a tree // represents the upper bound on the maximum depth of a tree
Id parent = parents[size_t(id)];
parents[size_t(id)] = set; parents[size_t(id)] = set;
id = parents[size_t(id)]; id = parent;
} }
return set; return set;