[Flac-dev] CVS flac crashing on 64bit

Miroslav Lichvar lichvarm at phoenix.inf.upol.cz
Sun May 27 09:45:00 PDT 2007


flac from CVS crashes on 64bit architectures, both encoding and
decoding fails. This patch fixes the problem, but more casting is
required to remove compiler warnings.

--- src/libFLAC/lpc.c	4 Apr 2007 00:59:28 -0000	1.61
+++ src/libFLAC/lpc.c	27 May 2007 16:14:01 -0000
@@ -303,7 +303,7 @@
 }
 #else /* fully unrolled version for normal use */
 {
-	unsigned i;
+	int i;
 	FLAC__int32 sum;
 
 	FLAC__ASSERT(order > 0);
@@ -833,7 +833,7 @@
 }
 #else /* fully unrolled version for normal use */
 {
-	unsigned i;
+	int i;
 	FLAC__int32 sum;
 
 	FLAC__ASSERT(order > 0);

-- 
Miroslav Lichvar


More information about the Flac-dev mailing list