diff --git a/lib/tty/color.c b/lib/tty/color.c
index 87fce30..1e610ae 100644
a
|
b
|
tty_color_free_all (gboolean is_temp_color) |
104 | 104 | static gboolean |
105 | 105 | tty_color_get_next_cpn_cb (gpointer key, gpointer value, gpointer user_data) |
106 | 106 | { |
107 | | int cp; |
| 107 | ssize_t cp; |
108 | 108 | tty_color_pair_t *mc_color_pair; |
109 | 109 | (void) key; |
110 | 110 | |
111 | | cp = (int) user_data; |
| 111 | cp = (ssize_t) user_data; |
112 | 112 | mc_color_pair = (tty_color_pair_t *) value; |
113 | 113 | |
114 | | if (cp == mc_color_pair->pair_index) |
| 114 | if (cp == (ssize_t)mc_color_pair->pair_index) |
115 | 115 | return TRUE; |
116 | 116 | |
117 | 117 | return FALSE; |
… |
… |
tty_color_get_next_cpn_cb (gpointer key, gpointer value, gpointer user_data) |
122 | 122 | static int |
123 | 123 | tty_color_get_next__color_pair_number () |
124 | 124 | { |
125 | | int cp_count = g_hash_table_size (mc_tty_color__hashtable); |
126 | | int cp = 0; |
| 125 | ssize_t cp_count = g_hash_table_size (mc_tty_color__hashtable); |
| 126 | ssize_t cp = 0; |
127 | 127 | |
128 | 128 | for (cp = 0; cp < cp_count; cp++) { |
129 | 129 | if (g_hash_table_find (mc_tty_color__hashtable, tty_color_get_next_cpn_cb, (gpointer) cp) == |
diff --git a/lib/tty/color.c b/lib/tty/color.c
index 87fce30..2bb935a 100644
a
|
b
|
tty_color_free_condition_cb (gpointer key, gpointer value, gpointer user_data) |
85 | 85 | tty_color_pair_t *mc_color_pair; |
86 | 86 | (void) key; |
87 | 87 | |
88 | | is_temp_color = (gboolean) user_data; |
| 88 | is_temp_color = (gssize) user_data; |
89 | 89 | mc_color_pair = (tty_color_pair_t *) value; |
90 | 90 | return (mc_color_pair->is_temp == is_temp_color); |
91 | 91 | } |
… |
… |
tty_color_free_condition_cb (gpointer key, gpointer value, gpointer user_data) |
93 | 93 | /* --------------------------------------------------------------------------------------------- */ |
94 | 94 | |
95 | 95 | static void |
96 | | tty_color_free_all (gboolean is_temp_color) |
| 96 | tty_color_free_all (gssize is_temp_color) |
97 | 97 | { |
98 | 98 | g_hash_table_foreach_remove (mc_tty_color__hashtable, tty_color_free_condition_cb, |
99 | 99 | (gpointer) is_temp_color); |
… |
… |
tty_color_free_all (gboolean is_temp_color) |
104 | 104 | static gboolean |
105 | 105 | tty_color_get_next_cpn_cb (gpointer key, gpointer value, gpointer user_data) |
106 | 106 | { |
107 | | int cp; |
| 107 | ssize_t cp; |
108 | 108 | tty_color_pair_t *mc_color_pair; |
109 | 109 | (void) key; |
110 | 110 | |
111 | | cp = (int) user_data; |
| 111 | cp = (ssize_t) user_data; |
112 | 112 | mc_color_pair = (tty_color_pair_t *) value; |
113 | 113 | |
114 | | if (cp == mc_color_pair->pair_index) |
| 114 | if (cp == (ssize_t)mc_color_pair->pair_index) |
115 | 115 | return TRUE; |
116 | 116 | |
117 | 117 | return FALSE; |
… |
… |
tty_color_get_next_cpn_cb (gpointer key, gpointer value, gpointer user_data) |
122 | 122 | static int |
123 | 123 | tty_color_get_next__color_pair_number () |
124 | 124 | { |
125 | | int cp_count = g_hash_table_size (mc_tty_color__hashtable); |
126 | | int cp = 0; |
| 125 | ssize_t cp_count = g_hash_table_size (mc_tty_color__hashtable); |
| 126 | ssize_t cp = 0; |
127 | 127 | |
128 | 128 | for (cp = 0; cp < cp_count; cp++) { |
129 | 129 | if (g_hash_table_find (mc_tty_color__hashtable, tty_color_get_next_cpn_cb, (gpointer) cp) == |