eina unicode - remove pointless operands

fixes CID 1039676
This commit is contained in:
Carsten Haitzler 2014-08-14 19:18:46 +09:00
parent bcbe9f621e
commit 90bbc73c6e
1 changed files with 1 additions and 5 deletions

View File

@ -402,7 +402,7 @@ eina_unicode_unicode_to_utf8(const Eina_Unicode *uni, int *_len)
*ind++ = 0x80 | (unsigned char) (*uind & 0x3F);
len += 5;
}
else if (*uind <= 0x7FFFFFFF) /* 6 byte char */
else /* 6 byte char */
{
*ind++ = 0xFC | (unsigned char) ((*uind >> 30) & 0x01);
*ind++ = 0x80 | (unsigned char) ((*uind >> 24) & 0x3F);
@ -412,10 +412,6 @@ eina_unicode_unicode_to_utf8(const Eina_Unicode *uni, int *_len)
*ind++ = 0x80 | (unsigned char) (*uind & 0x3F);
len += 6;
}
else /* error */
{
/* Do something */
}
}
buf2 = realloc(buf, len + 1);
if (!buf2)