summarylogtreecommitdiffstats
path: root/index.patch
blob: 0910d82db299f28419ab2a03fbacc1809f901437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/exm-upgrade-assistant.c b/src/exm-upgrade-assistant.c
index 6eca4c7..17d2eeb 100644
--- a/src/exm-upgrade-assistant.c
+++ b/src/exm-upgrade-assistant.c
@@ -406,7 +406,7 @@ do_compatibility_check (ExmUpgradeAssistant *self)
     if (!key)
         return;
 
-    target_version = (int) g_hash_table_lookup (self->version_map, key);
+    target_version = GPOINTER_TO_INT (g_hash_table_lookup (self->version_map, key));
 
     if (self->target_shell_version)
         g_free (self->target_shell_version);
@@ -595,7 +595,7 @@ populate_drop_down (ExmUpgradeAssistant *self)
         gchar *key;
 
         key = g_strdup_printf ("GNOME %d", index);
-        g_hash_table_insert (hash_table, key, index);
+        g_hash_table_insert (hash_table, key, GINT_TO_POINTER (index));
         gtk_string_list_append (string_list, key);
     }