shithub: libsamplerate

Download patch

ref: 562e4d89a11b494e74d40bc0422dddfe00b6e90d
parent: 2901a8a6011ef5c904335bf6991e182ba262aa89
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Wed Jul 9 08:55:26 EDT 2008

src/src_sinc.c : Remove use of llrint because sizeof (increment_t) is guaranteed not to be 8.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-09  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
+
+    * src/src_sinc.c
+    Remove use of llrint because sizeof (increment_t) is guaranteed not to be 8.
+
 2008-07-02  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
     * tests/downsample_test.c
--- a/src/src_sinc.c
+++ b/src/src_sinc.c
@@ -78,9 +78,7 @@
 
 static inline increment_t
 double_to_fp (double x)
-{	if (sizeof (increment_t) == 8)
-		return (llrint ((x) * FP_ONE)) ;
-	return (lrint ((x) * FP_ONE)) ;
+{	return (lrint ((x) * FP_ONE)) ;
 } /* double_to_fp */
 
 static inline increment_t