From e40d4b9b681c7562ce777339f6db6fc3d831d831 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Wed, 5 Apr 2023 13:41:10 +0200 Subject: [PATCH] Fix a new compile warning --- src/detection/displayserver/linux/xcb.c | 2 +- src/detection/displayserver/linux/xlib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/displayserver/linux/xcb.c b/src/detection/displayserver/linux/xcb.c index 89fc1ae00..447c76bb2 100644 --- a/src/detection/displayserver/linux/xcb.c +++ b/src/detection/displayserver/linux/xcb.c @@ -175,7 +175,7 @@ typedef struct XcbRandrData static bool xcbRandrHandleModeInfo(XcbRandrData* data, xcb_randr_mode_info_t* modeInfo) { - double refreshRate = modeInfo->dot_clock / (double) (modeInfo->htotal * modeInfo->vtotal); + double refreshRate = (double) modeInfo->dot_clock / (double) (modeInfo->htotal * modeInfo->vtotal); return ffdsAppendDisplay( data->result, diff --git a/src/detection/displayserver/linux/xlib.c b/src/detection/displayserver/linux/xlib.c index f1dcbeabc..13a08b2a5 100644 --- a/src/detection/displayserver/linux/xlib.c +++ b/src/detection/displayserver/linux/xlib.c @@ -134,7 +134,7 @@ typedef struct XrandrData static bool xrandrHandleModeInfo(XrandrData* data, XRRModeInfo* modeInfo) { - double refreshRate = modeInfo->dotClock / (double) (modeInfo->hTotal * modeInfo->vTotal); + double refreshRate = (double) modeInfo->dotClock / (double) (modeInfo->hTotal * modeInfo->vTotal); return ffdsAppendDisplay( data->result,