rpms/libsamplerate/devel libsamplerate-0.1.7-test.patch,1.1,1.2

Lubomir Rintel lkundrak at fedoraproject.org
Fri May 8 10:13:07 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/libsamplerate/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9026

Modified Files:
	libsamplerate-0.1.7-test.patch 
Log Message:
Fix up the patch to work on ppc

libsamplerate-0.1.7-test.patch:

Index: libsamplerate-0.1.7-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/libsamplerate/devel/libsamplerate-0.1.7-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- libsamplerate-0.1.7-test.patch	8 May 2009 09:26:16 -0000	1.1
+++ libsamplerate-0.1.7-test.patch	8 May 2009 10:13:07 -0000	1.2
@@ -10,7 +10,7 @@ diff -up libsamplerate-0.1.7/tests/callb
  	src_state = src_delete (src_state) ;
  
 -	if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > src_ratio)
-+	if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > ceil (src_ratio))
++	if (fabs (read_total - floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data))) > ceil (src_ratio))
  	{	printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
  		printf ("    input len  : %d\n", ARRAY_LEN (test_callback_data.data)) ;
  		printf ("    output len : %ld (should be %g +/- %g)\n\n", read_total,




More information about the scm-commits mailing list