diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index d84112e6..3c037001 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -239,7 +239,7 @@ RADEONComputePLL_old(RADEONPLLPtr pll, if (flags & RADEON_PLL_PREFER_CLOSEST_LOWER) { error = freq - current_freq; - error = error < 0 ? 0xffffffff : error; + error = (int32_t)error < 0 ? 0xffffffff : error; } else error = abs(current_freq - freq); vco_diff = abs(vco - best_vco); |