SOURCES: python-pySpeex-fix.patch (NEW) - fix build

qboosh qboosh at pld-linux.org
Sun Jul 8 20:18:10 CEST 2007


Author: qboosh                       Date: Sun Jul  8 18:18:10 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix build

---- Files affected:
SOURCES:
   python-pySpeex-fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-pySpeex-fix.patch
diff -u /dev/null SOURCES/python-pySpeex-fix.patch:1.1
--- /dev/null	Sun Jul  8 20:18:10 2007
+++ SOURCES/python-pySpeex-fix.patch	Sun Jul  8 20:18:05 2007
@@ -0,0 +1,20 @@
+--- pySpeex-0.2/speex.pyx.orig	2007-07-08 20:13:50.695282341 +0200
++++ pySpeex-0.2/speex.pyx	2007-07-08 20:14:13.343076219 +0200
+@@ -365,7 +365,7 @@
+             bufOut[bufOutSiz] = nBytes % 256
+             bufOut[bufOutSiz+1] = nBytes / 256
+             bufOutSiz = bufOutSiz + 2
+-            memcpy(bufOut+bufOutSiz, cbits, nBytes)
++            memcpy(bufOut+bufOutSiz, <void *>cbits, nBytes)
+             # printf("ok5\n")
+             bufOutSiz = bufOutSiz + nBytes
+             # printf("ok6\n")
+@@ -522,7 +522,7 @@
+       
+                     # Copy from float to short (16 bits) for output
+                     for i from 0 <= i < self.encFramesPerBlock:
+-                      decShorts1[i] = decFloats1[i]
++                      decShorts1[i] = <short>decFloats1[i]
+       
+                     self.decPhase = 0 #  back to awaiting LSB of count header
+                     self.decNumBytes = 0
================================================================


More information about the pld-cvs-commit mailing list