* fix a bunch of sign-compare warnings
Change-Id: Iacfa7983917080ef8b99dabd1c99b3e8e32bea9f
&& !m_pIC->isEmpty()) {
changeMasks |= KEYEVENT_USED;
if (m_candiPageFirst > 0) {
&& !m_pIC->isEmpty()) {
changeMasks |= KEYEVENT_USED;
if (m_candiPageFirst > 0) {
- if (m_candiPageFirst > m_candiWindowSize)
+ if (m_candiPageFirst > m_candiWindowSize) {
m_candiPageFirst -= m_candiWindowSize;
m_candiPageFirst -= m_candiWindowSize;
changeMasks |= CANDIDATE_MASK;
}
} else if (((modifiers == 0 && keycode == IM_VK_PAGE_DOWN)
changeMasks |= CANDIDATE_MASK;
}
} else if (((modifiers == 0 && keycode == IM_VK_PAGE_DOWN)
return true;
if (m_start == other.m_start)
return true;
if (m_start == other.m_start)
+ return m_len < other.m_len;
const unsigned char *src = (const unsigned char*)s;
TWCHAR* dst = pwcs;
const unsigned char *src = (const unsigned char*)s;
TWCHAR* dst = pwcs;
- while (dst - pwcs < n) {
+ while (dst - pwcs < (ssize_t)n) {
if (*src < 0xc0 || *src >= 0xfe) {
if (*src < 0x80) *dst++ = *src;
if (*src++ == 0) break;
if (*src < 0xc0 || *src >= 0xfe) {
if (*src < 0x80) *dst++ = *src;
if (*src++ == 0) break;