View | Details | Raw Unified | Return to bug 216300
Collapse All | Expand All

(-)x11-drivers/xf86-video-neomagic/files/patch-src_neo__driver.c (+13 lines)
Line 0 Link Here
1
# Double in, double out; use fabs
2
#
3
--- src/neo_driver.c.orig	2016-11-25 03:32:57 UTC
4
+++ src/neo_driver.c
5
@@ -2952,7 +2952,7 @@ neoCalcVCLK(ScrnInfoPtr pScrn, long freq
6
 	for (n = 0; n <= MAX_N; n++)
7
 	    for (d = 1; d <= MAX_D; d++) {
8
 		f_out = (n+1.0)/((d+1.0)*(1<<f))*REF_FREQ;
9
-		f_diff = abs(f_out-f_target);
10
+		f_diff = fabs(f_out-f_target);
11
 		if (f_diff < f_best_diff) {
12
 		    f_best_diff = f_diff;
13
 		    n_best = n;

Return to bug 216300