diff options
-rw-r--r-- | src/mga_dacG.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mga_dacG.c b/src/mga_dacG.c index d5a7689..4e24595 100644 --- a/src/mga_dacG.c +++ b/src/mga_dacG.c @@ -961,8 +961,8 @@ MGAGCalcClock ( ScrnInfoPtr pScrn, long f_out, /* * Pick the closest frequency. */ - if ( abs(calc_f - f_vco) < m_err ) { - m_err = abs(calc_f - f_vco); + if ( fabs(calc_f - f_vco) < m_err ) { + m_err = fabs(calc_f - f_vco); *best_m = m; *best_n = n; } |