Fix clang CUtlHashtableEntry errors

Co-Authored-By: vanz696 <152704532+vanz696@users.noreply.github.com>
This commit is contained in:
GAMMACASE 2024-04-03 18:58:23 +03:00
parent 3b3b695c09
commit 5d33fddc8e

View File

@ -74,7 +74,7 @@ public:
};
storage_t flags_and_hash;
alignas( alignof(KVPair) ) storage_t data[ ( sizeof(KVPair) + sizeof(storage_t) - 1 ) / sizeof(storage_t) ];
alignas( MAX( alignof(KVPair), alignof(storage_t) ) ) storage_t data[ ( sizeof(KVPair) + sizeof(storage_t) - 1 ) / sizeof(storage_t) ];
bool IsValid() const { return flags_and_hash >= 0; }
void MarkInvalid() { int32 flag = FLAG_FREE; flags_and_hash = (storage_t)flag; }