mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
- Fixed GCC/Clang warnings with serializer Unicode parser.
This commit is contained in:
parent
104030697f
commit
ffea457d81
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ static const char *StringToUnicode(const char *cc, int size = -1)
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int count1 = 0;
|
int count1 = 0;
|
||||||
out.Clear();
|
out.Clear();
|
||||||
while (ch = (*c++) & 255)
|
while ((ch = (*c++) & 255))
|
||||||
{
|
{
|
||||||
count1++;
|
count1++;
|
||||||
if (ch >= 128)
|
if (ch >= 128)
|
||||||
|
@ -180,7 +180,7 @@ static const char *StringToUnicode(const char *cc, int size = -1)
|
||||||
out.Last() = 0;
|
out.Last() = 0;
|
||||||
c = cc;
|
c = cc;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (ch = (*c++) & 255)
|
while ((ch = (*c++) & 255))
|
||||||
{
|
{
|
||||||
utf8_encode(ch, &out[i], &count1);
|
utf8_encode(ch, &out[i], &count1);
|
||||||
i += count1;
|
i += count1;
|
||||||
|
|
Loading…
Reference in a new issue