- Fixed GCC/Clang warnings with serializer Unicode parser.

This commit is contained in:
Edoardo Prezioso 2016-11-12 11:18:17 +01:00 committed by Christoph Oelckers
parent 104030697f
commit ffea457d81

View file

@ -162,7 +162,7 @@ static const char *StringToUnicode(const char *cc, int size = -1)
int count = 0;
int count1 = 0;
out.Clear();
while (ch = (*c++) & 255)
while ((ch = (*c++) & 255))
{
count1++;
if (ch >= 128)
@ -180,7 +180,7 @@ static const char *StringToUnicode(const char *cc, int size = -1)
out.Last() = 0;
c = cc;
int i = 0;
while (ch = (*c++) & 255)
while ((ch = (*c++) & 255))
{
utf8_encode(ch, &out[i], &count1);
i += count1;