mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 02:20:25 +01:00
Fix compilation with GCC 11.X
This commit is contained in:
parent
52313115bb
commit
6f3ff98fa4
|
@ -291,7 +291,7 @@ ULONG CTString::GetHash(void) const
|
|||
INDEX len = strlen(str_String);
|
||||
|
||||
for(INDEX i=0; i<len; i++) {
|
||||
ulKey = _rotl(ulKey,4)+toupper(str_String[i]);
|
||||
ulKey = rotl(ulKey,4)+toupper(str_String[i]);
|
||||
}
|
||||
return ulKey;
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ MY_STATIC_ASSERT(size_tSize, sizeof(size_t) == sizeof(void*));
|
|||
}
|
||||
}
|
||||
|
||||
inline ULONG _rotl(ULONG ul, int bits)
|
||||
inline ULONG rotl(ULONG ul, int bits)
|
||||
{
|
||||
#if (defined __GNU_INLINE_X86_32__)
|
||||
// This, on the other hand, is wicked fast. :)
|
||||
|
|
Loading…
Reference in New Issue
Block a user