Cleanup: fix Cycles asan warning
Not sure why constructing a ustring inside [] is causing issues here, but it's slightly more efficient to construct it once anyway.
This commit is contained in:
@@ -19,8 +19,10 @@ struct NodeEnum {
|
||||
}
|
||||
void insert(const char *x, int y)
|
||||
{
|
||||
left[ustring(x)] = y;
|
||||
right[y] = ustring(x);
|
||||
ustring ustr_x(x);
|
||||
|
||||
left[ustr_x] = y;
|
||||
right[y] = ustr_x;
|
||||
}
|
||||
|
||||
bool exists(ustring x) const
|
||||
|
||||
Reference in New Issue
Block a user