13 lines
618 B
Plaintext
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))))
|