mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 10:38:23 +00:00
Fix clang CUtlHashtableEntry errors
Co-Authored-By: vanz696 <152704532+vanz696@users.noreply.github.com>
This commit is contained in:
parent
3b3b695c09
commit
5d33fddc8e
@ -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; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user