From 160d754f2228e74daea5735c9fb6655e082de906 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 9 Feb 2022 12:26:35 +0100 Subject: Fix build warning -Wbad-function-cast --- libcaja-private/caja-icon-info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcaja-private/caja-icon-info.c') diff --git a/libcaja-private/caja-icon-info.c b/libcaja-private/caja-icon-info.c index ee52e4bd..02ce1d8a 100644 --- a/libcaja-private/caja-icon-info.c +++ b/libcaja-private/caja-icon-info.c @@ -683,7 +683,10 @@ caja_get_icon_size_for_zoom_level (CajaZoomLevel zoom_level) float caja_get_relative_icon_size_for_zoom_level (CajaZoomLevel zoom_level) { - return (float)caja_get_icon_size_for_zoom_level (zoom_level) / CAJA_ICON_SIZE_STANDARD; + guint icon_size; + + icon_size = caja_get_icon_size_for_zoom_level (zoom_level); + return ((float) icon_size) / ((float) CAJA_ICON_SIZE_STANDARD); } guint -- cgit v1.2.1