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);
                ^~~~~~~~~~~~~
This commit is contained in:
Christian Göttsche 2020-09-23 13:52:49 +02:00 committed by cgzones
parent 4a1f3fca96
commit cd1ba1422b

View File

@ -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) {