summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-05-16 09:16:48 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-05-16 09:16:48 +0800
commitea3c000a332c8dd67147f479e1fdc13747d560c2 (patch)
tree94c2508b2b907ef5f2637a1d18e753ada8308834 /src
parent98e590baa65b9fb133f71994877cd2068c505d7f (diff)
downloadibus-libpinyin-ea3c000a332c8dd67147f479e1fdc13747d560c2.tar.gz
ibus-libpinyin-ea3c000a332c8dd67147f479e1fdc13747d560c2.tar.xz
ibus-libpinyin-ea3c000a332c8dd67147f479e1fdc13747d560c2.zip
Fix two build warnings.
Diffstat (limited to 'src')
-rw-r--r--src/BopomofoEditor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BopomofoEditor.cc b/src/BopomofoEditor.cc
index 61eff78..a93fe24 100644
--- a/src/BopomofoEditor.cc
+++ b/src/BopomofoEditor.cc
@@ -443,7 +443,7 @@ BopomofoEditor::updateAuxiliaryText (void)
}
for (String::iterator i = m_text.begin() + m_pinyin_len; i != m_text.end(); i++) {
- if (m_cursor == i - m_text.begin())
+ if (m_cursor == (guint)(i - m_text.begin ()))
m_buffer << '|';
m_buffer.appendUnichar(bopomofo_char[keyvalToBopomofo(*i)]);
}
@@ -539,8 +539,8 @@ BopomofoEditor::updatePreeditText (void)
}
}
else {
- for (const gchar *p=m_text.c_str(); *p ;++p) {
- if (p - m_text.c_str() == m_cursor)
+ for (const gchar *p = m_text.c_str(); *p; ++p) {
+ if ((guint) (p - m_text.c_str ()) == m_cursor)
m_buffer << ' ';
m_buffer.appendUnichar(bopomofo_char[keyvalToBopomofo(*p)]);
}