forked from enlightenment/efl
eina unicode - remove pointless operands
fixes CID 1039676
This commit is contained in:
parent
bcbe9f621e
commit
90bbc73c6e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue