Remove build warning -Wbad-function-cast
This commit is contained in:
parent
4e38685364
commit
0bfa4ca16e
|
@ -472,9 +472,11 @@ cursor_size_scale_value_changed_cb (GtkRange *range, AppearanceData *data)
|
|||
g_free (name);
|
||||
|
||||
if (theme) {
|
||||
gdouble value;
|
||||
gint size;
|
||||
|
||||
size = g_array_index (theme->sizes, gint, (int) gtk_range_get_value (range));
|
||||
value = gtk_range_get_value (range);
|
||||
size = g_array_index (theme->sizes, gint, (int) value);
|
||||
cursor_size_changed_cb (size, data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ build_fallback_thumbstr (FT_Face face)
|
|||
total_chars = g_utf8_strlen (chars, -1);
|
||||
|
||||
while (idx < 2) {
|
||||
total_chars = (gint) floor (total_chars / 2.0);
|
||||
total_chars = total_chars / 2;
|
||||
ptr = g_utf8_offset_to_pointer (chars, total_chars);
|
||||
end = g_utf8_find_next_char (ptr, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue