From 8aecba27d1d30863920e2df2a4dce2dc1b195fc8 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Thu, 13 May 2021 17:28:02 +0200 Subject: [PATCH] Fix usage of float constant reported by gcc Signed-off-by: Christophe CURIS --- src/switchpanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchpanel.c b/src/switchpanel.c index 5bf84da8..89675b0f 100644 --- a/src/switchpanel.c +++ b/src/switchpanel.c @@ -399,7 +399,7 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, Bool class_only) WMGetScaleBaseFromSystemFont(scr->wmscreen, &wmScaleWidth, &wmScaleHeight); icon_size = wPreferences.switch_panel_icon_size; - icon_tile_size = (short int)(((float)icon_size * (float)1.2) + 0.5); + icon_tile_size = (short int)(((float)icon_size * 1.2F) + 0.5F); border_space = WMScaleY(10); label_height = WMScaleY(25);