[Pidgin] #15822: pidgin-2.10.7\libpurple\util.c line 4527
Pidgin
trac at pidgin.im
Thu Nov 28 01:25:26 EST 2013
#15822: pidgin-2.10.7\libpurple\util.c line 4527
----------------------+-------------------------------
Reporter: ttttrrrr | Owner:
Type: defect | Status: new
Milestone: | Component: libpurple
Version: 2.10.7 | Keywords: util.c utf8_first
----------------------+-------------------------------
'''pidgin-2.10.7\libpurple\util.c line 4527''' :
{{{
#define utf8_first(x) ((x & 0x80) == 0 || (x & 0xe0) == 0xc0 \
|| (x & 0xf0) == 0xe0 || (x & 0xf8) == 0xf)
}}}
Expression (X & 0xf8) == 0xf is always false.
May be it bug.
May be correct expression (X & 0xf8) == 0xf0 ?
I use cppcheck.
--
Ticket URL: <https://developer.pidgin.im/ticket/15822>
Pidgin <https://pidgin.im>
Pidgin
More information about the Tracker
mailing list