mirror of
https://github.com/edubart/otclient.git
synced 2025-10-29 01:25:34 +01:00
Priorize OpenSSL 1.0 in cmake, warning fixes
This commit is contained in:
@@ -107,18 +107,22 @@ void TiXmlBase::ConvertUTF32ToUTF8( unsigned long input, char* output, int* leng
|
||||
// Scary scary fall throughs.
|
||||
switch (*length)
|
||||
{
|
||||
/* FALLTHROUGH */
|
||||
case 4:
|
||||
--output;
|
||||
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
|
||||
input >>= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 3:
|
||||
--output;
|
||||
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
|
||||
input >>= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
--output;
|
||||
*output = (char)((input | BYTE_MARK) & BYTE_MASK);
|
||||
input >>= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
--output;
|
||||
*output = (char)(input | FIRST_BYTE_MARK[*length]);
|
||||
|
||||
Reference in New Issue
Block a user