mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-03-30 18:50:06 +02: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);
|
INDEX len = strlen(str_String);
|
||||||
|
|
||||||
for(INDEX i=0; i<len; i++) {
|
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;
|
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__)
|
#if (defined __GNU_INLINE_X86_32__)
|
||||||
// This, on the other hand, is wicked fast. :)
|
// This, on the other hand, is wicked fast. :)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user