File gcc4.patch of Package scim-pinyin
diff -ru scim-pinyin-0.5.0.20050215.orig/src/scim_pinyin_imengine_setup.cpp scim-pinyin-0.5.0.20050215/src/scim_pinyin_imengine_setup.cpp
--- scim-pinyin-0.5.0.20050215.orig/src/scim_pinyin_imengine_setup.cpp 2005-01-06 14:31:00.000000000 +0100
+++ scim-pinyin-0.5.0.20050215/src/scim_pinyin_imengine_setup.cpp 2005-04-15 15:34:27.000000000 +0200
@@ -1290,7 +1290,7 @@
__on_ambiguities_toggled (GtkToggleButton *togglebutton,
gpointer user_data)
{
- int index = (int) user_data;
+ int index = GPOINTER_TO_INT(user_data);
if (index >= 0 && index <= SCIM_PINYIN_AmbLast) {
__config_ambiguities [index] = gtk_toggle_button_get_active (togglebutton);