diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-23 13:52:49 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-24 20:14:17 +0200 |
commit | cd1ba1422b7e3d4b07002192b7961c2d9783acc2 (patch) | |
tree | c31cdedda3aacdbaa4d72018d58b53d3c963be24 /linux/Platform.c | |
parent | 4a1f3fca96c10d3d983570d1696c1c2ca940786f (diff) |
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);
^~~~~~~~~~~~~
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |