summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-info.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-02-09 12:26:35 +0100
committermbkma <[email protected]>2022-07-22 08:48:41 +0200
commit160d754f2228e74daea5735c9fb6655e082de906 (patch)
treea91ae7eb2fd831f4f87c36b9bf021a5df1be7848 /libcaja-private/caja-icon-info.c
parentb90c1c21ded05281f5ed9dfbbaac764f918300f8 (diff)
downloadcaja-160d754f2228e74daea5735c9fb6655e082de906.tar.bz2
caja-160d754f2228e74daea5735c9fb6655e082de906.tar.xz
Fix build warning -Wbad-function-cast
Diffstat (limited to 'libcaja-private/caja-icon-info.c')
-rw-r--r--libcaja-private/caja-icon-info.c5
1 files changed, 4 insertions, 1 deletions
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