[v0.11] Small adjustments to fix compilation on older compilers

This commit is contained in:
Dr-Noob
2021-12-10 16:18:39 +01:00
parent b6ce96e746
commit 93889b2b18
2 changed files with 1 additions and 3 deletions

View File

@@ -32,8 +32,6 @@ VENDOR get_gpu_vendor(struct gpu_info* gpu) {
return gpu->vendor;
}
double trunc(double val) { return ((int)(100 * val)) / 100.0; }
int32_t get_value_as_smallest_unit(char ** str, uint64_t value) {
int32_t ret;
int max_len = 10; // Max is 8 for digits, 2 for units