openbsd-ports/audio/speex/patches/patch-libspeex_stack_alloc_h
naddy 66893e37ac Import speex 1.0.1.
Speex is a patent-free audio codec designed especially for voice
(unlike Vorbis which targets general audio) signals and providing
good narrowband and wideband quality.  This project aims to be
complementary to the Vorbis codec.
2003-06-12 00:52:02 +00:00

13 lines
618 B
Plaintext

$OpenBSD: patch-libspeex_stack_alloc_h,v 1.1.1.1 2003/06/12 00:52:02 naddy Exp $
--- libspeex/stack_alloc.h.orig Tue May 13 04:15:23 2003
+++ libspeex/stack_alloc.h Tue May 13 04:15:39 2003
@@ -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))))