[SCM] lame/master: not sure if fabs() returns double on all systems, better play safe

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Tue Feb 24 06:33:14 UTC 2015


The following commit has been merged in the master branch:
commit c8ca65a6f9d3fd0a86ccac913a5a455a1dfaebe2
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Tue Feb 24 07:30:08 2015 +0100

    not sure if fabs() returns double on all systems, better play safe

diff --git a/debian/patches/int_resample_ratio.patch b/debian/patches/int_resample_ratio.patch
index 1105cca..ba0064d 100644
--- a/debian/patches/int_resample_ratio.patch
+++ b/debian/patches/int_resample_ratio.patch
@@ -23,7 +23,7 @@ Bug-Debian: https://bugs.debian.org/778529
          bpc = BPC;
  
 -    intratio = (fabs(resample_ratio - floor(.5 + resample_ratio)) < .0001);
-+    intratio = (fabs(resample_ratio - floor(.5 + resample_ratio)) < DBL_EPSILON);
++    intratio = (fabs(resample_ratio - floor(.5 + resample_ratio)) < FLT_EPSILON);
      fcn = 1.00 / resample_ratio;
      if (fcn > 1.00)
          fcn = 1.00;

-- 
lame packaging



More information about the pkg-multimedia-commits mailing list