diff --git a/src/serializer.cpp b/src/serializer.cpp index dec81e86fe..8875b61f99 100644 --- a/src/serializer.cpp +++ b/src/serializer.cpp @@ -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;