Fix incorrect sizeof argument to memcmp in EEVEE's ObjectKey comparison

This commit is contained in:
Campbell Barton 2023-10-03 11:14:08 +11:00
parent 83724fe1eb
commit 74bb280df5
1 changed files with 2 additions and 2 deletions

View File

@ -80,12 +80,12 @@ class ObjectKey {
bool operator<(const ObjectKey &k) const
{
return memcmp(this, &k, sizeof(this)) < 0;
return memcmp(this, &k, sizeof(*this)) < 0;
}
bool operator==(const ObjectKey &k) const
{
return memcmp(this, &k, sizeof(this)) == 0;
return memcmp(this, &k, sizeof(*this)) == 0;
}
};