summaryrefslogtreecommitdiff
path: root/inputmethod/scim-python/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/scim-python/patches/patch-ad')
-rw-r--r--inputmethod/scim-python/patches/patch-ad8
1 files changed, 4 insertions, 4 deletions
diff --git a/inputmethod/scim-python/patches/patch-ad b/inputmethod/scim-python/patches/patch-ad
index 5ef236a1c20..deb460d5b94 100644
--- a/inputmethod/scim-python/patches/patch-ad
+++ b/inputmethod/scim-python/patches/patch-ad
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.2 2012/12/25 21:07:47 joerg Exp $
+$NetBSD: patch-ad,v 1.3 2013/03/22 13:29:42 obache Exp $
-remove unwanted cast.
+* let to cast with appropriate type.
--- src/scim-python-lookup-table.cpp.orig 2008-07-11 04:16:15.000000000 +0000
+++ src/scim-python-lookup-table.cpp
@@ -9,7 +9,7 @@ remove unwanted cast.
int usize = PyUnicode_GET_SIZE (items[i]);
gunichar *unistr = g_utf16_to_ucs4 (PyUnicode_AS_UNICODE (items[i]), usize, NULL, NULL, NULL);
- _labels.push_back (WideString ((wchar_t *)unistr));
-+ _labels.push_back (WideString (unistr));
++ _labels.push_back (WideString ((scim::ucs4_t *)unistr));
g_free (unistr);
#endif
}
@@ -18,7 +18,7 @@ remove unwanted cast.
unistr = g_utf16_to_ucs4 (candidate, size, NULL, NULL, NULL);
- if (self->lookup_table.append_candidate (WideString ((wchar_t *)unistr),
-+ if (self->lookup_table.append_candidate (WideString (unistr),
++ if (self->lookup_table.append_candidate (WideString ((scim::ucs4_t *)unistr),
Attributes_FromTupleOrList (pAttrs)))
{
result = Py_True;