diff options
Diffstat (limited to 'cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c')
-rw-r--r-- | cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c b/cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c index 3ee43c47..69ecaf77 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-procfs.c @@ -184,7 +184,7 @@ cpufreq_selector_procfs_set_frequency (CPUFreqSelector *selector, } if (frequency != sc_max && frequency != sc_min) { - if (abs (sc_max - frequency) < abs (frequency - sc_min)) + if (abs ((int)sc_max - (int)frequency) < abs ((int)frequency - (int)sc_min)) freq = sc_max; else freq = sc_min; |