From cd1ba1422b7e3d4b07002192b7961c2d9783acc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 23 Sep 2020 13:52:49 +0200 Subject: [PATCH] Avoid bad function cast warning linux/Platform.c:142:17: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] return (int) floor(uptime); ^~~~~~~~~~~~~ --- linux/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Platform.c b/linux/Platform.c index 0545fc46..8972862e 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -139,7 +139,7 @@ int Platform_getUptime() { fclose(fd); if (n <= 0) return 0; } - return (int) floor(uptime); + return floor(uptime); } void Platform_getLoadAverage(double* one, double* five, double* fifteen) {