[Speex-dev] [PATCH] 64bit build fix for speex 1.0.5
Andreas Steinmetz
ast at domdv.de
Fri Aug 26 02:37:23 PDT 2005
[please cc me on replies, I'm not subscribed]
The attached patch fixes tons of warnings when building speex-1.0.5 on
64bit (x86_64).
--
Andreas Steinmetz SPAMmers use robotrap at domdv.de
-------------- next part --------------
diff -rNu speex-1.0.5.orig/libspeex/stack_alloc.h speex-1.0.5/libspeex/stack_alloc.h
--- speex-1.0.5.orig/libspeex/stack_alloc.h 2004-03-21 07:37:22.000000000 +0100
+++ speex-1.0.5/libspeex/stack_alloc.h 2005-08-26 11:21:43.000000000 +0200
@@ -48,7 +48,7 @@
#else
/*Aligns the stack to a 'size' boundary */
-#define ALIGN(stack, size) ((stack) += ((size) - (int)(stack)) & ((size) - 1))
+#define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1))
/* Allocates 'size' elements of type 'type' on the stack */
#define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))
More information about the Speex-dev
mailing list