From 0bfa4ca16e527fdc333fc1ded8b1d9f5963ccf1e Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 23 Nov 2021 11:07:16 +0100 Subject: Remove build warning -Wbad-function-cast --- font-viewer/font-thumbnailer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'font-viewer') diff --git a/font-viewer/font-thumbnailer.c b/font-viewer/font-thumbnailer.c index 583fb490..81ff1456 100644 --- a/font-viewer/font-thumbnailer.c +++ b/font-viewer/font-thumbnailer.c @@ -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); -- cgit v1.2.1