From e7b80c4e8d4fc56e32aa92d450b0661e5dac9236 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 23 Mar 2001 20:07:42 +0000 Subject: [PATCH] va_start has also changed since the address of a fixed parameter is now calculated by the compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@655 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/stdarg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdarg.h b/include/stdarg.h index fe0fa9f07..be9ce537f 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -40,7 +40,7 @@ typedef unsigned char* va_list; -#define va_start(ap, fix) ap = (va_list)&fix + __argsize__ - __fixargs__ +#define va_start(ap, fix) ap = ((va_list)&(fix)) #define va_arg(ap,type) (*(type*)(ap -= ((sizeof (type) + 1) & ~1))) #define va_copy(dest, src) ((dest)=(src)) #define va_end(ap) -- 2.39.5